mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Device tracker: make all Mac addresses uppercase. Fixes #37
This commit is contained in:
parent
ee20268e27
commit
f6f76acdb0
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user