Skip to content

Commit b31a3b9

Browse files
committed
Lint
1 parent 7104687 commit b31a3b9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

custom_components/retry/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,10 @@ def _initial_check(self) -> bool:
368368

369369
if ATTR_EXPECTED_STATE in self._params.retry_data and self._entity_id:
370370
if (
371-
ent_obj := _get_entity(self._hass, self._entity_id)
372-
) is None or not ent_obj.available or not self._check_state(ent_obj):
371+
(ent_obj := _get_entity(self._hass, self._entity_id)) is None
372+
or not ent_obj.available
373+
or not self._check_state(ent_obj)
374+
):
373375
return False
374376
result = True
375377

0 commit comments

Comments
 (0)