IntelliFire Fan - Bug fix on off funciton (#79819)

fix: Fan was double calling off as well as calling an async without an await
This commit is contained in:
Jeef 2022-10-07 10:37:00 -06:00 committed by GitHub
parent 9850709b37
commit 04f07cecba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,6 +125,5 @@ class IntellifireFan(IntellifireEntity, FanEntity):
async def async_turn_off(self, **kwargs: Any) -> None:
"""Turn off the fan."""
self.coordinator.control_api.fan_off()
await self.entity_description.set_fn(self.coordinator.control_api, 0)
await self.coordinator.async_request_refresh()