mirror of
https://github.com/home-assistant/core.git
synced 2025-07-11 15:27:08 +00:00
fix last device ignored (#18329)
This commit is contained in:
parent
ae85baf396
commit
b803075eb4
@ -39,7 +39,7 @@ Device = namedtuple('Device', ['name', 'ip', 'mac', 'state'])
|
|||||||
class HuaweiDeviceScanner(DeviceScanner):
|
class HuaweiDeviceScanner(DeviceScanner):
|
||||||
"""This class queries a router running HUAWEI firmware."""
|
"""This class queries a router running HUAWEI firmware."""
|
||||||
|
|
||||||
ARRAY_REGEX = re.compile(r'var UserDevinfo = new Array\((.*),null\);')
|
ARRAY_REGEX = re.compile(r'var UserDevinfo = new Array\((.*)null\);')
|
||||||
DEVICE_REGEX = re.compile(r'new USERDevice\((.*?)\),')
|
DEVICE_REGEX = re.compile(r'new USERDevice\((.*?)\),')
|
||||||
DEVICE_ATTR_REGEX = re.compile(
|
DEVICE_ATTR_REGEX = re.compile(
|
||||||
'"(?P<Domain>.*?)","(?P<IpAddr>.*?)",'
|
'"(?P<Domain>.*?)","(?P<IpAddr>.*?)",'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user