From 9904727cde33278e8669c391ec189e599c1eb7c9 Mon Sep 17 00:00:00 2001 From: Stefan Jonasson Date: Sun, 13 Sep 2015 20:16:51 +0200 Subject: [PATCH] homeassistant/components/automation/numeric_state.py:61:80: E501 line too long (80 > 79 characters) The command "flake8 homeassistant" exited with 1. --- homeassistant/components/automation/numeric_state.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/automation/numeric_state.py b/homeassistant/components/automation/numeric_state.py index 24c9f9db14a..23c2093637b 100644 --- a/homeassistant/components/automation/numeric_state.py +++ b/homeassistant/components/automation/numeric_state.py @@ -28,7 +28,8 @@ def register(hass, config, action): above = config.get(CONF_ABOVE) if below is None and above is None: - _LOGGER.error("Missing configuration key. One of %s or %s is required", + _LOGGER.error("Missing configuration key." + " One of %s or %s is required", CONF_BELOW, CONF_ABOVE) return False @@ -57,8 +58,8 @@ 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(