From f4a665e5f32ba0a267a18919697c675c5ce8c797 Mon Sep 17 00:00:00 2001 From: Mario Ramundo Date: Sun, 20 Oct 2024 11:40:00 +0200 Subject: [PATCH 1/2] 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) From c283f557c9a5fc796a810d201ebf6cd56675742c Mon Sep 17 00:00:00 2001 From: Mario Ramundo Date: Sun, 20 Oct 2024 22:59:20 +0200 Subject: [PATCH 2/2] feat(setup): bump package version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 1e8e2fc..9e9df06 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ with open("README.md", "r", encoding="utf-8") as f: setup( name="pyhOn", - version="0.17.5", + version="0.17.6", author="Andre Basche", description="Control hOn devices with python", long_description=long_description,