Skip to content

Commit

Permalink
Fix Bloom cft temp
Browse files Browse the repository at this point in the history
  • Loading branch information
cyr-ius committed Nov 23, 2023
1 parent eff2337 commit 9cd5534
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions custom_components/heatzy/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
CONF_ATTR,
CONF_ATTRS,
CONF_CFT_TEMP,
CONF_COM_TEMP,
CONF_CUR_MODE,
CONF_CUR_TEMP,
CONF_DEROG_MODE,
Expand Down Expand Up @@ -540,7 +539,7 @@ def current_temperature(self) -> float:
@property
def target_temperature_high(self) -> float:
"""Return comfort temperature."""
return self._attr.get(CONF_COM_TEMP)
return self._attr.get(CONF_CFT_TEMP)

@property
def target_temperature_low(self) -> float:
Expand Down Expand Up @@ -582,14 +581,14 @@ async def async_set_temperature(self, **kwargs: Any) -> None:
temp_cft := kwargs.get(ATTR_TARGET_TEMP_HIGH)
):
self._attr[CONF_ECO_TEMP] = int(temp_eco)
self._attr[CONF_COM_TEMP] = int(temp_cft)
self._attr[CONF_CFT_TEMP] = int(temp_cft)

try:
await self.coordinator.api.async_control_device(
self.unique_id,
{
CONF_ATTRS: {
CONF_CFT_TEMP: self._attr[CONF_COM_TEMP],
CONF_CFT_TEMP: self._attr[CONF_CFT_TEMP],
CONF_ECO_TEMP: self._attr[CONF_ECO_TEMP],
}
},
Expand Down
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.9.7-beta3"
"version": "5.9.7-beta4"
}

0 comments on commit 9cd5534

Please sign in to comment.