Switch formatting from black to ruff-format (#102893)

Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
Aarni Koskela 2023-11-27 15:38:59 +02:00 committed by GitHub
parent cf9b0e804f
commit 706add4a57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
161 changed files with 530 additions and 607 deletions

View file

@ -251,7 +251,9 @@ def async_track_state_change(
return async_track_state_change_event(hass, entity_ids, state_change_listener)
return hass.bus.async_listen(
EVENT_STATE_CHANGED, state_change_dispatcher, event_filter=state_change_filter # type: ignore[arg-type]
EVENT_STATE_CHANGED,
state_change_dispatcher, # type: ignore[arg-type]
event_filter=state_change_filter, # type: ignore[arg-type]
)
@ -761,7 +763,8 @@ class _TrackStateChangeFiltered:
@callback
def _setup_all_listener(self) -> None:
self._listeners[_ALL_LISTENER] = self.hass.bus.async_listen(
EVENT_STATE_CHANGED, self._action # type: ignore[arg-type]
EVENT_STATE_CHANGED,
self._action, # type: ignore[arg-type]
)
@ -1335,7 +1338,8 @@ def async_track_same_state(
if entity_ids == MATCH_ALL:
async_remove_state_for_cancel = hass.bus.async_listen(
EVENT_STATE_CHANGED, state_for_cancel_listener # type: ignore[arg-type]
EVENT_STATE_CHANGED,
state_for_cancel_listener, # type: ignore[arg-type]
)
else:
async_remove_state_for_cancel = async_track_state_change_event(