- fixed water filter options

This commit is contained in:
Jack Simbach 2021-07-16 18:53:30 -04:00
parent ce3d5abeb0
commit bca28bca5e
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ _LOGGER = logging.getLogger(__name__)
class FilterPositionOptionsConverter(OptionsConverter):
@property
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:
try:
return ErdWaterFilterPosition[value]