mirror of
https://github.com/sususweet/midea-meiju-codec.git
synced 2025-10-15 10:48:26 +00:00
feat: add turn on & off feature for T0xAC.
This commit is contained in:
@@ -81,6 +81,8 @@ class MideaClimateEntity(MideaEntity, ClimateEntity):
|
|||||||
@property
|
@property
|
||||||
def supported_features(self):
|
def supported_features(self):
|
||||||
features = ClimateEntityFeature(0)
|
features = ClimateEntityFeature(0)
|
||||||
|
features |= ClimateEntityFeature.TURN_ON
|
||||||
|
features |= ClimateEntityFeature.TURN_OFF
|
||||||
if self._key_target_temperature is not None:
|
if self._key_target_temperature is not None:
|
||||||
features |= ClimateEntityFeature.TARGET_TEMPERATURE
|
features |= ClimateEntityFeature.TARGET_TEMPERATURE
|
||||||
if self._key_preset_modes is not None:
|
if self._key_preset_modes is not None:
|
||||||
|
Reference in New Issue
Block a user