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 thempull/109406/head
parent
a7c074e388
commit
7e3001f843
|
@ -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,
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue