Fix Fan template loosing percentage/preset (#67648)

Co-authored-by: J. Nick Koston <nick@koston.org>
pull/67669/head
Franck Nijhof 2022-03-04 20:17:11 +01:00 committed by GitHub
parent c337e69f0a
commit cb1299b434
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

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."""