From bb8155418e60aca8bac7d6f669fce992fb2fc2ef Mon Sep 17 00:00:00 2001 From: Bryan York Date: Tue, 13 Aug 2024 00:43:09 -0700 Subject: [PATCH] Add ClimateEntityFeature.TURN_OFF for Google Assistant calls Google Assistant expects to call the turn_off service which does not exist unless specifically enabled as a ClimateEntityFeature.TURN_OFF feature. Previously calls to turn off my Kumo devices would fail silently from Google and an error message in Home Assistant regarding an unsupported service. I have tested this change to fix my issue. --- custom_components/kumo/climate.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/custom_components/kumo/climate.py b/custom_components/kumo/climate.py index 36f6bed..cc18434 100644 --- a/custom_components/kumo/climate.py +++ b/custom_components/kumo/climate.py @@ -155,7 +155,9 @@ def __init__(self, coordinator: KumoDataUpdateCoordinator): self._swing_modes = self._pykumo.get_vane_directions() self._hvac_modes = [HVACMode.OFF, HVACMode.COOL] self._supported_features = ( - ClimateEntityFeature.TARGET_TEMPERATURE | ClimateEntityFeature.FAN_MODE + ClimateEntityFeature.TARGET_TEMPERATURE | + ClimateEntityFeature.FAN_MODE | + ClimateEntityFeature.TURN_OFF ) if self._pykumo.has_dry_mode(): self._hvac_modes.append(HVACMode.DRY)