Skip to content

Commit

Permalink
Add Onyx model
Browse files Browse the repository at this point in the history
  • Loading branch information
cyr-ius committed Oct 26, 2023
1 parent 5659114 commit 49ae686
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 1 addition & 2 deletions custom_components/heatzy/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
DOMAIN,
ECO_TEMP_H,
ECO_TEMP_L,
ELEC_PRO_SOC,
FROST_TEMP,
GLOW,
PILOTE_V1,
Expand All @@ -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))
Expand Down
7 changes: 5 additions & 2 deletions custom_components/heatzy/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
"b9a67b6ce24b437d9794103fd317e627",
"4fc968a21e7243b390e9ede6f1c6465d",
"46409c7f29d4411c85a3a46e5ee3703e",
"b8c6657b66c34148b4dee64d615cefc7", # ELEC_PRO_SOC
]
GLOW = [
"2fd622e45283470f9e27e8e6167d7533",
"bb10d064f8de409db633b750faa22a52" # ONYX
]
GLOW = ["2fd622e45283470f9e27e8e6167d7533"]
ELEC_PRO_SOC = ["b8c6657b66c34148b4dee64d615cefc7"]
2 changes: 1 addition & 1 deletion custom_components/heatzy/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit 49ae686

Please sign in to comment.