Add TURN_ON/OFF ClimateEntityFeature for Modbus (#109133)
This commit is contained in:
parent
d5d74005f4
commit
2788576dc9
1 changed files with 6 additions and 1 deletions
|
@ -97,7 +97,12 @@ async def async_setup_platform(
|
|||
class ModbusThermostat(BaseStructPlatform, RestoreEntity, ClimateEntity):
|
||||
"""Representation of a Modbus Thermostat."""
|
||||
|
||||
_attr_supported_features = ClimateEntityFeature.TARGET_TEMPERATURE
|
||||
_attr_supported_features = (
|
||||
ClimateEntityFeature.TARGET_TEMPERATURE
|
||||
| ClimateEntityFeature.TURN_OFF
|
||||
| ClimateEntityFeature.TURN_ON
|
||||
)
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue