mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
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
This commit is contained in:
parent
a7c074e388
commit
7e3001f843
@ -1797,7 +1797,6 @@ class StateMachine:
|
|||||||
self._bus.async_fire(
|
self._bus.async_fire(
|
||||||
EVENT_STATE_CHANGED,
|
EVENT_STATE_CHANGED,
|
||||||
{"entity_id": entity_id, "old_state": old_state, "new_state": None},
|
{"entity_id": entity_id, "old_state": old_state, "new_state": None},
|
||||||
EventOrigin.local,
|
|
||||||
context=context,
|
context=context,
|
||||||
)
|
)
|
||||||
return True
|
return True
|
||||||
@ -1932,8 +1931,7 @@ class StateMachine:
|
|||||||
self._bus.async_fire(
|
self._bus.async_fire(
|
||||||
EVENT_STATE_CHANGED,
|
EVENT_STATE_CHANGED,
|
||||||
{"entity_id": entity_id, "old_state": old_state, "new_state": state},
|
{"entity_id": entity_id, "old_state": old_state, "new_state": state},
|
||||||
EventOrigin.local,
|
context=context,
|
||||||
context,
|
|
||||||
time_fired=now,
|
time_fired=now,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user