mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Allow empty hostnames when detecting devices with the aruba device_tracker. (#9440)
This commit is contained in:
parent
26c98512c8
commit
a7bce5f9e6
@ -19,9 +19,9 @@ _LOGGER = logging.getLogger(__name__)
|
|||||||
REQUIREMENTS = ['pexpect==4.0.1']
|
REQUIREMENTS = ['pexpect==4.0.1']
|
||||||
|
|
||||||
_DEVICES_REGEX = re.compile(
|
_DEVICES_REGEX = re.compile(
|
||||||
r'(?P<name>([^\s]+))\s+' +
|
r'(?P<name>([^\s]+)?)\s+' +
|
||||||
r'(?P<ip>([0-9]{1,3}[\.]){3}[0-9]{1,3})\s+' +
|
r'(?P<ip>([0-9]{1,3}[\.]){3}[0-9]{1,3})\s+' +
|
||||||
r'(?P<mac>(([0-9a-f]{2}[:-]){5}([0-9a-f]{2})))\s+')
|
r'(?P<mac>([0-9a-f]{2}[:-]){5}([0-9a-f]{2}))\s+')
|
||||||
|
|
||||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
vol.Required(CONF_HOST): cv.string,
|
vol.Required(CONF_HOST): cv.string,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user