Do not trigger events for updated ring events (#130430)

This commit is contained in:
Steven B. 2024-11-14 09:09:58 +00:00 committed by Franck Nijhof
parent 103a84b4bd
commit f4798d27c7
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -96,7 +96,7 @@ class RingEvent(RingBaseEntity[RingListenCoordinator, RingDeviceT], EventEntity)
@callback
def _handle_coordinator_update(self) -> None:
if alert := self._get_coordinator_alert():
if (alert := self._get_coordinator_alert()) and not alert.is_update:
self._async_handle_event(alert.kind)
super()._handle_coordinator_update()