mirror of https://github.com/simbaja/ha_gehome.git
- fixed water filter options
This commit is contained in:
parent
ce3d5abeb0
commit
bca28bca5e
|
@ -10,7 +10,7 @@ _LOGGER = logging.getLogger(__name__)
|
||||||
class FilterPositionOptionsConverter(OptionsConverter):
|
class FilterPositionOptionsConverter(OptionsConverter):
|
||||||
@property
|
@property
|
||||||
def options(self) -> List[str]:
|
def options(self) -> List[str]:
|
||||||
return [i.name.title() for i in ErdWaterFilterPosition].remove("Unknown")
|
return [i.name.title() for i in ErdWaterFilterPosition if i != ErdWaterFilterPosition.UNKNOWN]
|
||||||
def from_option_string(self, value: str) -> Any:
|
def from_option_string(self, value: str) -> Any:
|
||||||
try:
|
try:
|
||||||
return ErdWaterFilterPosition[value]
|
return ErdWaterFilterPosition[value]
|
||||||
|
|
Loading…
Reference in New Issue