forked from home-assistant/core
Device tracker: make all Mac addresses uppercase. Fixes #37
This commit is contained in:
@@ -161,7 +161,8 @@ class DeviceTracker(object):
|
|||||||
""" Update device states based on the found devices. """
|
""" Update device states based on the found devices. """
|
||||||
self.lock.acquire()
|
self.lock.acquire()
|
||||||
|
|
||||||
found_devices = set(self.device_scanner.scan_devices())
|
found_devices = set(dev.upper() for dev in
|
||||||
|
self.device_scanner.scan_devices())
|
||||||
|
|
||||||
for device in self.tracked:
|
for device in self.tracked:
|
||||||
is_home = device in found_devices
|
is_home = device in found_devices
|
||||||
|
Reference in New Issue
Block a user