Fix incorrect preset mode in senseme (#64526)

This commit is contained in:
J. Nick Koston 2022-01-19 22:22:27 -10:00 committed by GitHub
parent fceeafb5de
commit 6e4f01b2cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ class HASensemeFan(SensemeEntity, FanEntity):
else:
self._attr_percentage = None
whoosh = self._device.fan_whoosh_mode
self._attr_preset_mode = whoosh if whoosh else None
self._attr_preset_mode = PRESET_MODE_WHOOSH if whoosh else None
super()._async_update_attrs()
async def async_set_percentage(self, percentage: int) -> None: