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, )