Skip to content

Commit

Permalink
Add TURN_ON/OFF ClimateEntityFeature for Modbus
Browse files Browse the repository at this point in the history
  • Loading branch information
gjohansson-ST committed Jan 30, 2024
1 parent d752ab3 commit cb7843e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion homeassistant/components/modbus/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ 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
)

def __init__(
self,
Expand Down

0 comments on commit cb7843e

Please sign in to comment.