use a windows & linux compatible regex
This commit is contained in:
parent
88fe28ea1b
commit
3e3f5db2a5
1 changed files with 2 additions and 2 deletions
|
@ -20,8 +20,8 @@ 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\nDownload:\s(\d+\.\d+)'
|
||||
r'\sMbit/s\nUpload:\s(\d+\.\d+)\sMbit/s\n')
|
||||
_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]+')
|
||||
|
||||
CONF_MONITORED_CONDITIONS = 'monitored_conditions'
|
||||
CONF_MINUTE = 'minute'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue