mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 10:47:10 +00:00
Fix Fan template loosing percentage/preset (#67648)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
c337e69f0a
commit
cb1299b434
@ -277,8 +277,6 @@ class TemplateFan(TemplateEntity, FanEntity):
|
|||||||
"""Turn off the fan."""
|
"""Turn off the fan."""
|
||||||
await self._off_script.async_run(context=self._context)
|
await self._off_script.async_run(context=self._context)
|
||||||
self._state = STATE_OFF
|
self._state = STATE_OFF
|
||||||
self._percentage = 0
|
|
||||||
self._preset_mode = None
|
|
||||||
|
|
||||||
async def async_set_percentage(self, percentage: int) -> None:
|
async def async_set_percentage(self, percentage: int) -> None:
|
||||||
"""Set the percentage speed of the fan."""
|
"""Set the percentage speed of the fan."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user