mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Add TURN_ON/OFF ClimateEntityFeature for Shelly (#108967)
This commit is contained in:
parent
bc720b48b4
commit
f768dd8761
@ -160,7 +160,10 @@ class BlockSleepingClimate(
|
||||
_attr_max_temp = SHTRV_01_TEMPERATURE_SETTINGS["max"]
|
||||
_attr_min_temp = SHTRV_01_TEMPERATURE_SETTINGS["min"]
|
||||
_attr_supported_features = (
|
||||
ClimateEntityFeature.TARGET_TEMPERATURE | ClimateEntityFeature.PRESET_MODE
|
||||
ClimateEntityFeature.TARGET_TEMPERATURE
|
||||
| ClimateEntityFeature.PRESET_MODE
|
||||
| ClimateEntityFeature.TURN_OFF
|
||||
| ClimateEntityFeature.TURN_ON
|
||||
)
|
||||
_attr_target_temperature_step = SHTRV_01_TEMPERATURE_SETTINGS["step"]
|
||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||
@ -438,7 +441,11 @@ class RpcClimate(ShellyRpcEntity, ClimateEntity):
|
||||
_attr_icon = "mdi:thermostat"
|
||||
_attr_max_temp = RPC_THERMOSTAT_SETTINGS["max"]
|
||||
_attr_min_temp = RPC_THERMOSTAT_SETTINGS["min"]
|
||||
_attr_supported_features = ClimateEntityFeature.TARGET_TEMPERATURE
|
||||
_attr_supported_features = (
|
||||
ClimateEntityFeature.TARGET_TEMPERATURE
|
||||
| ClimateEntityFeature.TURN_OFF
|
||||
| ClimateEntityFeature.TURN_ON
|
||||
)
|
||||
_attr_target_temperature_step = RPC_THERMOSTAT_SETTINGS["step"]
|
||||
_attr_temperature_unit = UnitOfTemperature.CELSIUS
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user