From f4a665e5f32ba0a267a18919697c675c5ce8c797 Mon Sep 17 00:00:00 2001 From: Mario Ramundo Date: Sun, 20 Oct 2024 11:40:00 +0200 Subject: [PATCH] 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 --- pyhon/hon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyhon/hon.py b/pyhon/hon.py index 2f6f88d..2d4f01e 100644 --- a/pyhon/hon.py +++ b/pyhon/hon.py @@ -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)