mirror of
https://github.com/no2chem/wideq.git
synced 2025-05-28 04:50:23 -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]
|
||||
|
||||
@property
|
||||
def process(self) -> DishWasherProcess:
|
||||
def process(self) -> Optional[DishWasherProcess]:
|
||||
"""Get the process of the dishwasher."""
|
||||
process = lookup_enum('Process', self.data, self.dishwasher)
|
||||
if process and process != '-':
|
||||
@ -113,7 +113,7 @@ class DishWasherStatus(object):
|
||||
if self.process:
|
||||
return DISHWASHER_PROCESS_READABLE[self.process.name]
|
||||
else:
|
||||
return None
|
||||
return ""
|
||||
|
||||
@property
|
||||
def is_on(self) -> bool:
|
||||
|
Loading…
x
Reference in New Issue
Block a user