Fix missing zone attribute

This commit is contained in:
Andre Basche 2023-04-15 22:25:34 +02:00
parent a957d7ac0f
commit a1618bb18a
4 changed files with 8 additions and 3 deletions

View file

@ -24,7 +24,7 @@ class HonAppliance:
self._commands: Dict = {}
self._statistics: Dict = {}
self._attributes: Dict = {}
self._zone = zone
self._zone: int = zone
try:
self._extra = importlib.import_module(
@ -106,6 +106,10 @@ class HonAppliance:
def info(self):
return self._info
@property
def zone(self) -> int:
return self._zone
async def _recover_last_command_states(self, commands):
command_history = await self._api.command_history(self)
for name, command in commands.items():