From 49ae6867ab518087d7804cdbd70d75820878e3fb Mon Sep 17 00:00:00 2001 From: cyr-ius Date: Thu, 26 Oct 2023 11:38:08 +0200 Subject: [PATCH] Add Onyx model --- custom_components/heatzy/climate.py | 3 +-- custom_components/heatzy/const.py | 7 +++++-- custom_components/heatzy/manifest.json | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/custom_components/heatzy/climate.py b/custom_components/heatzy/climate.py index 450f063..387bf93 100644 --- a/custom_components/heatzy/climate.py +++ b/custom_components/heatzy/climate.py @@ -47,7 +47,6 @@ DOMAIN, ECO_TEMP_H, ECO_TEMP_L, - ELEC_PRO_SOC, FROST_TEMP, GLOW, PILOTE_V1, @@ -67,7 +66,7 @@ async def async_setup_entry( product_key = device.get(CONF_PRODUCT_KEY) if product_key in PILOTE_V1: entities.append(HeatzyPiloteV1Thermostat(coordinator, unique_id)) - elif product_key in PILOTE_V2 or product_key in ELEC_PRO_SOC: + elif product_key in PILOTE_V2: entities.append(HeatzyPiloteV2Thermostat(coordinator, unique_id)) elif product_key in GLOW: entities.append(Glowv1Thermostat(coordinator, unique_id)) diff --git a/custom_components/heatzy/const.py b/custom_components/heatzy/const.py index 921f9bb..b496888 100644 --- a/custom_components/heatzy/const.py +++ b/custom_components/heatzy/const.py @@ -30,6 +30,9 @@ "b9a67b6ce24b437d9794103fd317e627", "4fc968a21e7243b390e9ede6f1c6465d", "46409c7f29d4411c85a3a46e5ee3703e", + "b8c6657b66c34148b4dee64d615cefc7", # ELEC_PRO_SOC +] +GLOW = [ + "2fd622e45283470f9e27e8e6167d7533", + "bb10d064f8de409db633b750faa22a52" # ONYX ] -GLOW = ["2fd622e45283470f9e27e8e6167d7533"] -ELEC_PRO_SOC = ["b8c6657b66c34148b4dee64d615cefc7"] diff --git a/custom_components/heatzy/manifest.json b/custom_components/heatzy/manifest.json index f329ea9..a39a743 100644 --- a/custom_components/heatzy/manifest.json +++ b/custom_components/heatzy/manifest.json @@ -9,5 +9,5 @@ "issue_tracker": "https://github.com/cyr-ius/hass-heatzy/issues", "loggers": ["heatzypy"], "requirements": ["heatzypy==2.1.5"], - "version": "5.8.6" + "version": "5.8.7" }