Add preset support to electrasmart climate (#94068)

This commit is contained in:
Ruben Bokobza 2023-06-28 10:29:58 +03:00 committed by GitHub
parent d2cd0c9934
commit 7a82176670
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,7 +118,9 @@ class ElectraClimateEntity(ClimateEntity):
self._electra_ac_device = device
self._attr_unique_id = device.mac
self._attr_supported_features = (
ClimateEntityFeature.TARGET_TEMPERATURE | ClimateEntityFeature.FAN_MODE
ClimateEntityFeature.TARGET_TEMPERATURE
| ClimateEntityFeature.FAN_MODE
| ClimateEntityFeature.PRESET_MODE
)
swing_modes: list = []