diff --git a/homeassistant/components/sensor/speedtest.py b/homeassistant/components/sensor/speedtest.py index e6c213e6850..7bb3c77ed09 100644 --- a/homeassistant/components/sensor/speedtest.py +++ b/homeassistant/components/sensor/speedtest.py @@ -20,8 +20,9 @@ import homeassistant.util.dt as dt_util REQUIREMENTS = ['speedtest-cli==0.3.4'] _LOGGER = logging.getLogger(__name__) -_SPEEDTEST_REGEX = re.compile(r'Ping:\s(\d+\.\d+)\sms[\r\n]+Download:\s(\d+\.\d+)' - r'\sMbit/s[\r\n]+Upload:\s(\d+\.\d+)\sMbit/s[\r\n]+') +_SPEEDTEST_REGEX = re.compile(r'Ping:\s(\d+\.\d+)\sms[\r\n]+' + r'Download:\s(\d+\.\d+)\sMbit/s[\r\n]+' + r'Upload:\s(\d+\.\d+)\sMbit/s[\r\n]+') CONF_MONITORED_CONDITIONS = 'monitored_conditions' CONF_MINUTE = 'minute'