mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Add TURN_ON/OFF ClimateEntityFeature for Modbus (#109133)
This commit is contained in:
parent
d5d74005f4
commit
2788576dc9
@ -97,7 +97,12 @@ async def async_setup_platform(
|
|||||||
class ModbusThermostat(BaseStructPlatform, RestoreEntity, ClimateEntity):
|
class ModbusThermostat(BaseStructPlatform, RestoreEntity, ClimateEntity):
|
||||||
"""Representation of a Modbus Thermostat."""
|
"""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__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user