mirror of
https://github.com/no2chem/wideq.git
synced 2025-06-03 07:50:14 -07:00
Fix type errors
This commit is contained in:
parent
a0c8eceda3
commit
09696d94f4
@ -99,7 +99,7 @@ class DishWasherStatus(object):
|
|||||||
return DISHWASHER_STATE_READABLE[self.state.name]
|
return DISHWASHER_STATE_READABLE[self.state.name]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def process(self) -> DishWasherProcess:
|
def process(self) -> Optional[DishWasherProcess]:
|
||||||
"""Get the process of the dishwasher."""
|
"""Get the process of the dishwasher."""
|
||||||
process = lookup_enum('Process', self.data, self.dishwasher)
|
process = lookup_enum('Process', self.data, self.dishwasher)
|
||||||
if process and process != '-':
|
if process and process != '-':
|
||||||
@ -113,7 +113,7 @@ class DishWasherStatus(object):
|
|||||||
if self.process:
|
if self.process:
|
||||||
return DISHWASHER_PROCESS_READABLE[self.process.name]
|
return DISHWASHER_PROCESS_READABLE[self.process.name]
|
||||||
else:
|
else:
|
||||||
return None
|
return ""
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_on(self) -> bool:
|
def is_on(self) -> bool:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user