Skip to content

Commit e555d0c

Browse files
Fix logic
1 parent 59e66bf commit e555d0c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

custom_components/label_state/binary_sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def _calc_state(self) -> None:
352352

353353
if (entity_state and self._state_from and self._state_to) and (
354354
entity_state.casefold() == self._state_from.casefold()
355-
or entity_state.casefold() == self._state_to.casefold()
355+
and entity_state.casefold() == self._state_to.casefold()
356356
):
357357
state_is_on = True
358358
else:

0 commit comments

Comments
 (0)