mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-05-23 03:06:54 -04:00
Fix some minor issues
This commit is contained in:
parent
4e88bc7a9f
commit
44f40c531e
6 changed files with 12 additions and 8 deletions
|
@ -165,7 +165,9 @@ class HonAppliance:
|
|||
|
||||
async def load_attributes(self) -> None:
|
||||
self._attributes = await self.api.load_attributes(self)
|
||||
for name, values in self._attributes.pop("shadow").get("parameters").items():
|
||||
for name, values in (
|
||||
self._attributes.pop("shadow", {}).get("parameters", {}).items()
|
||||
):
|
||||
if name in self._attributes.get("parameters", {}):
|
||||
self._attributes["parameters"][name].update(values)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue