Allow empty hostnames when detecting devices with the aruba device_tracker. (#9440)

This commit is contained in:
Michaël Arnauts 2017-09-16 07:55:53 +02:00 committed by Paulus Schoutsen
parent 26c98512c8
commit a7bce5f9e6

View File

@ -19,9 +19,9 @@ _LOGGER = logging.getLogger(__name__)
REQUIREMENTS = ['pexpect==4.0.1']
_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<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({
vol.Required(CONF_HOST): cv.string,