diff --git a/homeassistant/components/esphome/climate.py b/homeassistant/components/esphome/climate.py index 4f38d1caa24..e27d1d47bca 100644 --- a/homeassistant/components/esphome/climate.py +++ b/homeassistant/components/esphome/climate.py @@ -197,7 +197,7 @@ class EsphomeClimateEntity(EsphomeEntity[ClimateInfo, ClimateState], ClimateEnti return self._static_info.visual_max_temperature @property - def supported_features(self) -> int: + def supported_features(self) -> ClimateEntityFeature | int: """Return the list of supported features.""" features = 0 if self._static_info.supports_two_point_target_temperature: diff --git a/homeassistant/components/homekit_controller/climate.py b/homeassistant/components/homekit_controller/climate.py index 41e88725121..3838c3a862e 100644 --- a/homeassistant/components/homekit_controller/climate.py +++ b/homeassistant/components/homekit_controller/climate.py @@ -148,7 +148,7 @@ class HomeKitBaseClimateEntity(HomeKitEntity, ClimateEntity): ) @property - def supported_features(self) -> int: + def supported_features(self) -> ClimateEntityFeature | int: """Return the list of supported features.""" features = 0 @@ -368,7 +368,7 @@ class HomeKitHeaterCoolerEntity(HomeKitBaseClimateEntity): ) @property - def supported_features(self) -> int: + def supported_features(self) -> ClimateEntityFeature | int: """Return the list of supported features.""" features = super().supported_features @@ -602,7 +602,7 @@ class HomeKitClimateEntity(HomeKitBaseClimateEntity): return [MODE_HOMEKIT_TO_HASS[mode] for mode in valid_values] @property - def supported_features(self) -> int: + def supported_features(self) -> ClimateEntityFeature | int: """Return the list of supported features.""" features = super().supported_features diff --git a/homeassistant/components/izone/climate.py b/homeassistant/components/izone/climate.py index 31ad5f7860d..d65ebae24d4 100644 --- a/homeassistant/components/izone/climate.py +++ b/homeassistant/components/izone/climate.py @@ -518,7 +518,7 @@ class ZoneDevice(ClimateEntity): @property @_return_on_connection_error(0) - def supported_features(self) -> int: + def supported_features(self) -> ClimateEntityFeature | int: """Return the list of supported features.""" if self._zone.mode == Zone.Mode.AUTO: return self._attr_supported_features diff --git a/homeassistant/components/mqtt/climate.py b/homeassistant/components/mqtt/climate.py index ef5a25d959b..8ce43cac752 100644 --- a/homeassistant/components/mqtt/climate.py +++ b/homeassistant/components/mqtt/climate.py @@ -475,7 +475,7 @@ class MqttClimate(MqttEntity, ClimateEntity): config.get(key), entity=self ).async_render - support: int = 0 + support: ClimateEntityFeature | int = 0 if (self._topic[CONF_TEMP_STATE_TOPIC] is not None) or ( self._topic[CONF_TEMP_COMMAND_TOPIC] is not None ): diff --git a/homeassistant/components/mysensors/climate.py b/homeassistant/components/mysensors/climate.py index 44468d8db4c..abaa74ab2fa 100644 --- a/homeassistant/components/mysensors/climate.py +++ b/homeassistant/components/mysensors/climate.py @@ -77,7 +77,7 @@ class MySensorsHVAC(mysensors.device.MySensorsEntity, ClimateEntity): _attr_hvac_modes = OPERATION_LIST @property - def supported_features(self) -> int: + def supported_features(self) -> ClimateEntityFeature | int: """Return the list of supported features.""" features = 0 set_req = self.gateway.const.SetReq diff --git a/homeassistant/components/sensibo/climate.py b/homeassistant/components/sensibo/climate.py index 70d4a12406a..4c11d5e781b 100644 --- a/homeassistant/components/sensibo/climate.py +++ b/homeassistant/components/sensibo/climate.py @@ -176,7 +176,7 @@ class SensiboClimate(SensiboDeviceBaseEntity, ClimateEntity): self._attr_supported_features = self.get_features() self._attr_precision = PRECISION_TENTHS - def get_features(self) -> int: + def get_features(self) -> ClimateEntityFeature | int: """Get supported features.""" features = 0 for key in self.device_data.full_features: