mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02: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:
@@ -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,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user