Fix Fan template loosing percentage/preset (#67648)

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
Franck Nijhof
2022-03-06 00:07:37 -08:00
committed by Paulus Schoutsen
co-authored by J. Nick Koston
parent 2a6d5ea7bd
commit d7348718e0
-2
View File
@@ -277,8 +277,6 @@ class TemplateFan(TemplateEntity, FanEntity):
"""Turn off the fan."""
await self._off_script.async_run(context=self._context)
self._state = STATE_OFF
self._percentage = 0
self._preset_mode = None
async def async_set_percentage(self, percentage: int) -> None:
"""Set the percentage speed of the fan."""