From 7e3001f843b3fa0bfc09ea1aba1f645f35fff2e2 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 4 Feb 2024 13:49:42 -0600 Subject: [PATCH] Remove default values from calls to async_fire (#109613) There were a few places were we passing unnecessary default values. Since this code tends to get copied, remove them --- homeassistant/core.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/homeassistant/core.py b/homeassistant/core.py index 0f2a28b2fa4..f3ef4bc598e 100644 --- a/homeassistant/core.py +++ b/homeassistant/core.py @@ -1797,7 +1797,6 @@ class StateMachine: self._bus.async_fire( EVENT_STATE_CHANGED, {"entity_id": entity_id, "old_state": old_state, "new_state": None}, - EventOrigin.local, context=context, ) return True @@ -1932,8 +1931,7 @@ class StateMachine: self._bus.async_fire( EVENT_STATE_CHANGED, {"entity_id": entity_id, "old_state": old_state, "new_state": state}, - EventOrigin.local, - context, + context=context, time_fired=now, )