mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 07:02:02 +01:00
Add Christmas Tree (#17950)
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
This commit is contained in:
parent
563caa0762
commit
7cc9903158
@ -45,7 +45,11 @@ final class CollectionDate {
|
||||
/**
|
||||
* Light packaging.
|
||||
*/
|
||||
LIGHT_PACKAGES;
|
||||
LIGHT_PACKAGES,
|
||||
/**
|
||||
* Christmas Tree.
|
||||
*/
|
||||
CHRISTMAS_TREES;
|
||||
|
||||
/**
|
||||
* Parses the {@link WasteType} from the given Value from the Web-page.
|
||||
@ -60,6 +64,8 @@ final class CollectionDate {
|
||||
return PAPER;
|
||||
case "Leichtverpackungen":
|
||||
return LIGHT_PACKAGES;
|
||||
case "Weihnachtsbäume":
|
||||
return CHRISTMAS_TREES;
|
||||
default:
|
||||
throw new IllegalArgumentException("Unknown waste type: " + value);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user