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

View File

@@ -73,7 +73,7 @@ class HASensemeFan(SensemeEntity, FanEntity):
else: else:
self._attr_percentage = None self._attr_percentage = None
whoosh = self._device.fan_whoosh_mode 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() super()._async_update_attrs()
async def async_set_percentage(self, percentage: int) -> None: async def async_set_percentage(self, percentage: int) -> None: