mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57:17 +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()
|
||||||
self._timeout = None
|
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):
|
class RfxtrxChime(RfxtrxCommandEntity, SirenEntity, RfxtrxOffDelayMixin):
|
||||||
"""Representation of a RFXtrx chime."""
|
"""Representation of a RFXtrx chime."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user