Skip to content

Commit

Permalink
Merge pull request #79 from radical-squared/support-2024-02-climate-t…
Browse files Browse the repository at this point in the history
…urn-on-off

Fix implicitly supporting turn_on/turn_off
  • Loading branch information
elad-bar authored Feb 8, 2024
2 parents 2249b06 + 8d03d58 commit 062803a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 3.0.30

- Fix error message `implicitly supporting turn_on/turn_off` introduced in v2024.2

## 3.0.29

- Replaced soon (2025) to get deprecated SUPPORT\_\* constant with ClimateEntityFeature
Expand Down
5 changes: 4 additions & 1 deletion custom_components/aqua_temp/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ def __init__(
super().__init__(entity_description, coordinator, device_code)

self._attr_supported_features = (
ClimateEntityFeature.TARGET_TEMPERATURE | ClimateEntityFeature.FAN_MODE
ClimateEntityFeature.TURN_OFF
| ClimateEntityFeature.TURN_ON
| ClimateEntityFeature.TARGET_TEMPERATURE
| ClimateEntityFeature.FAN_MODE
)
self._attr_fan_modes = list(coordinator.get_fan_modes(device_code))
self._attr_hvac_modes = list(coordinator.get_hvac_modes(device_code))
Expand Down
2 changes: 1 addition & 1 deletion custom_components/aqua_temp/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/radical-squared/aquatemp/issues",
"requirements": [],
"version": "3.0.29"
"version": "3.0.30"
}

0 comments on commit 062803a

Please sign in to comment.