Fix xiaomi air fresh fan preset modes (#54342)

This commit is contained in:
Jan Bouwhuis 2021-08-09 20:57:36 +02:00 committed by GitHub
parent a54ee7b366
commit 0149095824
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1138,6 +1138,7 @@ class XiaomiAirFresh(XiaomiGenericDevice):
self._speed_list = OPERATION_MODES_AIRFRESH
self._speed_count = 4
self._preset_modes = PRESET_MODES_AIRFRESH
self._supported_features = SUPPORT_SET_SPEED | SUPPORT_PRESET_MODE
self._state_attrs.update(
{attribute: None for attribute in self._available_attributes}
)