Device tracker: make all Mac addresses uppercase. Fixes #37

This commit is contained in:
Paulus Schoutsen 2015-02-27 18:36:09 -08:00
parent ee20268e27
commit f6f76acdb0

View file

@ -161,7 +161,8 @@ class DeviceTracker(object):
""" Update device states based on the found devices. """
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:
is_home = device in found_devices