mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Fixed pylint error
This commit is contained in:
parent
9904727cde
commit
e3dcb45879
@ -58,8 +58,9 @@ def register(hass, config, action):
|
|||||||
""" Listens for state changes and calls action. """
|
""" Listens for state changes and calls action. """
|
||||||
|
|
||||||
# Fire action if we go from outside range into range
|
# Fire action if we go from outside range into range
|
||||||
if numeric_in_range(to_s.state, above, below) and (from_s is None
|
if numeric_in_range(to_s.state, above, below) and \
|
||||||
or not numeric_in_range(from_s.state, above, below)):
|
(from_s is None or \
|
||||||
|
not numeric_in_range(from_s.state, above, below)):
|
||||||
action()
|
action()
|
||||||
|
|
||||||
track_state_change(
|
track_state_change(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user