mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Let the nmap device tracker return upper case MAC addresses.
This commit is contained in:
parent
9d41958b3a
commit
71ac550e7d
@ -120,7 +120,7 @@ class NmapDeviceScanner(object):
|
|||||||
else:
|
else:
|
||||||
mac = _arp(host.ipv4)
|
mac = _arp(host.ipv4)
|
||||||
if mac:
|
if mac:
|
||||||
device = Device(mac, name, host.ipv4, now)
|
device = Device(mac.upper(), name, host.ipv4, now)
|
||||||
self.last_results.append(device)
|
self.last_results.append(device)
|
||||||
_LOGGER.info("nmap scan successful")
|
_LOGGER.info("nmap scan successful")
|
||||||
return True
|
return True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user