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. """ """ 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(