mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +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. """
|
||||
|
||||
# Fire action if we go from outside range into range
|
||||
if numeric_in_range(to_s.state, above, below) and (from_s is None
|
||||
or not numeric_in_range(from_s.state, above, below)):
|
||||
if numeric_in_range(to_s.state, above, below) and \
|
||||
(from_s is None or \
|
||||
not numeric_in_range(from_s.state, above, below)):
|
||||
action()
|
||||
|
||||
track_state_change(
|
||||
|
Loading…
x
Reference in New Issue
Block a user