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
pull/109406/head
J. Nick Koston 2024-02-04 13:49:42 -06:00 committed by GitHub
parent a7c074e388
commit 7e3001f843
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View File

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