Fix some stuff for hoover appliances

This commit is contained in:
Andre Basche 2023-04-24 04:33:00 +02:00
parent 9ee5dbc956
commit 5db13a90e7
9 changed files with 31 additions and 19 deletions

View file

@ -1,4 +1,4 @@
from typing import Dict, Any
from typing import Dict, Any, List
class HonParameter:
@ -17,6 +17,10 @@ class HonParameter:
def value(self) -> str | float:
return self._value if self._value is not None else "0"
@property
def values(self) -> List[str]:
return list(str(self.value))
@property
def category(self) -> str:
return self._category