Improve cmd tool, write README

This commit is contained in:
Andre Basche 2023-03-04 21:27:10 +01:00
parent 22276832cd
commit 993a4c1d79
5 changed files with 80 additions and 21 deletions

View file

@ -9,7 +9,7 @@ class HonDevice:
self._commands = {}
self._statistics = {}
self._attributs = {}
self._attributes = {}
@property
def appliance_id(self):
@ -117,7 +117,7 @@ class HonDevice:
@property
def attributes(self):
return self._attributs
return self._attributes
@property
def statistics(self):
@ -159,7 +159,7 @@ class HonDevice:
async def load_attributes(self):
data = await self._connector.load_attributes(self)
for name, values in data.get("shadow").get("parameters").items():
self._attributs[name] = values["parNewVal"]
self._attributes[name] = values["parNewVal"]
async def load_statistics(self):
self._statistics = await self._connector.load_statistics(self)