Skip to content

Commit

Permalink
rm turn on
Browse files Browse the repository at this point in the history
  • Loading branch information
mxr committed Dec 14, 2024
1 parent 0a4f2e9 commit d89b013
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ Use the standard `climate` service calls to control or automate each unit. Avail
- `climate.set_fan_mode`
- `climate.set_hvac_mode`
- `climate.set_swing_mode`
- `climate.turn_on`
- `climate.turn_off`

Specific support and behavior can vary, depending on the capabilities of your indoor unit.
Expand Down
10 changes: 1 addition & 9 deletions custom_components/kumo/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,7 @@ def __init__(self, coordinator: KumoDataUpdateCoordinator):
self._supported_features = (
ClimateEntityFeature.TARGET_TEMPERATURE |
ClimateEntityFeature.FAN_MODE |
ClimateEntityFeature.TURN_OFF |
ClimateEntityFeature.TURN_ON
ClimateEntityFeature.TURN_OFF
)
if self._pykumo.has_dry_mode():
self._hvac_modes.append(HVACMode.DRY)
Expand Down Expand Up @@ -530,13 +529,6 @@ def set_fan_mode(self, fan_mode):
response = self._pykumo.set_fan_speed(fan_mode)
_LOGGER.debug("Kumo %s set fan speed response: %s", self._name, response)

def turn_on(self) -> None:
"""Turn the climate on. This implements https://www.home-assistant.io/integrations/climate/#action-climateturn_on.
For now, turn it on to HVACMode.COOL which always exists in self._hvac_modes.
In the future, make the default "on" mode configurable."""
self.set_hvac_mode(HVACMode.COOL, caller="turn_on")

def turn_off(self):
"""Turn the climate off. This implements https://www.home-assistant.io/integrations/climate/#action-climateturn_off."""
self.set_hvac_mode(HVACMode.OFF, caller="turn_off")

0 comments on commit d89b013

Please sign in to comment.