Fixed pylint error

This commit is contained in:
Stefan Jonasson 2015-09-13 20:27:11 +02:00
parent 9904727cde
commit e3dcb45879

View File

@ -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(