mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Fix lingering timer in rfxtrx (#92461)
This commit is contained in:
parent
78da1168db
commit
95023ecf08
@ -119,6 +119,11 @@ class RfxtrxOffDelayMixin(Entity):
|
||||
self._timeout()
|
||||
self._timeout = None
|
||||
|
||||
async def async_will_remove_from_hass(self) -> None:
|
||||
"""Run when entity will be removed from hass."""
|
||||
self._cancel_timeout()
|
||||
return await super().async_will_remove_from_hass()
|
||||
|
||||
|
||||
class RfxtrxChime(RfxtrxCommandEntity, SirenEntity, RfxtrxOffDelayMixin):
|
||||
"""Representation of a RFXtrx chime."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user