Fixed pylint error
This commit is contained in:
parent
9904727cde
commit
e3dcb45879
1 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue