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:
Mario Ramundo 2024-10-20 11:40:00 +02:00
parent 59e3d9949f
commit f4a665e5f3

View file

@ -92,8 +92,8 @@ class Hon:
if appliance.mac_address == "":
return
try:
await appliance.load_commands()
await appliance.load_attributes()
await appliance.load_commands()
await appliance.load_statistics()
except (KeyError, ValueError, IndexError) as error:
_LOGGER.exception(error)