Add TURN_ON/OFF ClimateEntityFeature for Mill (#108977)

This commit is contained in:
G Johansson 2024-01-30 18:16:51 +01:00 committed by GitHub
parent 36e3ba4834
commit 2b1d1340b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -92,7 +92,11 @@ class MillHeater(CoordinatorEntity[MillDataUpdateCoordinator], ClimateEntity):
_attr_max_temp = MAX_TEMP
_attr_min_temp = MIN_TEMP
_attr_name = None
_attr_supported_features = ClimateEntityFeature.TARGET_TEMPERATURE
_attr_supported_features = (
ClimateEntityFeature.TARGET_TEMPERATURE
| ClimateEntityFeature.TURN_OFF
| ClimateEntityFeature.TURN_ON
)
_attr_target_temperature_step = PRECISION_TENTHS
_attr_temperature_unit = UnitOfTemperature.CELSIUS