mirror of https://github.com/Andre0512/pyhOn.git
Fix missing zone attribute
This commit is contained in:
parent
a957d7ac0f
commit
a1618bb18a
|
@ -4,3 +4,4 @@ __pycache__/
|
|||
dist/
|
||||
**/*.egg-info/
|
||||
test*
|
||||
build/
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pyhOn)](https://www.python.org/)
|
||||
[![PyPI - License](https://img.shields.io/pypi/l/pyhOn)](https://github.com/Andre0512/pyhOn/blob/main/LICENSE)
|
||||
[![PyPI - Downloads](https://img.shields.io/pypi/dm/pyhOn)](https://pypistats.org/packages/pyhon)
|
||||
Control your Haier appliances with python!
|
||||
Control your Haier, Candy and Hoover appliances with python!
|
||||
The idea behind this library is, to make the use of all available commands as simple as possible.
|
||||
|
||||
## Installation
|
||||
|
|
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue