mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 06:07:17 +00:00
The word router
was misspelt (#5803)
fixed as this message is user facing
This commit is contained in:
parent
250523c1d8
commit
8951e1bdc0
@ -30,7 +30,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
|||||||
|
|
||||||
# pylint: disable=unused-argument
|
# pylint: disable=unused-argument
|
||||||
def get_scanner(hass, config):
|
def get_scanner(hass, config):
|
||||||
"""Return a Sky Hub 5 scanner if successful."""
|
"""Return a Sky Hub scanner if successful."""
|
||||||
scanner = SkyHubDeviceScanner(config[DOMAIN])
|
scanner = SkyHubDeviceScanner(config[DOMAIN])
|
||||||
|
|
||||||
return scanner if scanner.success_init else None
|
return scanner if scanner.success_init else None
|
||||||
@ -113,7 +113,7 @@ def _parse_skyhub_response(data_str):
|
|||||||
pattmatch = re.search('attach_dev = \'(.*)\'', data_str)
|
pattmatch = re.search('attach_dev = \'(.*)\'', data_str)
|
||||||
if pattmatch is None:
|
if pattmatch is None:
|
||||||
raise IOError('Error: Impossible to fetch data from' +
|
raise IOError('Error: Impossible to fetch data from' +
|
||||||
' Sky Hub. Try to reboot the rooter.')
|
' Sky Hub. Try to reboot the router.')
|
||||||
patt = pattmatch.group(1)
|
patt = pattmatch.group(1)
|
||||||
|
|
||||||
dev = [patt1.split(',') for patt1 in patt.split('<lf>')]
|
dev = [patt1.split(',') for patt1 in patt.split('<lf>')]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user