Skip to content

Commit

Permalink
Merge pull request #38 from MrXANA91/climateEntityFeaturesFix
Browse files Browse the repository at this point in the history
Added TURN_OFF and TURN_ON ClimateEntityFeatures (#35)
  • Loading branch information
KiraPC authored Mar 18, 2024
2 parents 077b053 + 86e45a8 commit cee66c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/switchbotremote/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def __init__(self, sb: SupportedRemote, options: dict = {}) -> None:
FAN_HIGH,
]

self._supported_features = ClimateEntityFeature.TARGET_TEMPERATURE | ClimateEntityFeature.FAN_MODE
self._supported_features = ClimateEntityFeature.TURN_OFF | ClimateEntityFeature.TURN_ON | ClimateEntityFeature.TARGET_TEMPERATURE | ClimateEntityFeature.FAN_MODE

self._temperature_sensor = options.get(CONF_TEMPERATURE_SENSOR, None)
self._humidity_sensor = options.get(CONF_HUMIDITY_SENSOR, None)
Expand Down

0 comments on commit cee66c2

Please sign in to comment.