mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-01-20 14:31:01 +00:00
fix: call load_attributes
before load_commands
Otherwise the settings command will retain the default value instead of the real ones in attributes. Fixes Andre0512/hon#238
This commit is contained in:
parent
59e3d9949f
commit
f4a665e5f3
|
@ -92,8 +92,8 @@ class Hon:
|
||||||
if appliance.mac_address == "":
|
if appliance.mac_address == "":
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
await appliance.load_commands()
|
|
||||||
await appliance.load_attributes()
|
await appliance.load_attributes()
|
||||||
|
await appliance.load_commands()
|
||||||
await appliance.load_statistics()
|
await appliance.load_statistics()
|
||||||
except (KeyError, ValueError, IndexError) as error:
|
except (KeyError, ValueError, IndexError) as error:
|
||||||
_LOGGER.exception(error)
|
_LOGGER.exception(error)
|
||||||
|
|
Loading…
Reference in a new issue