Prevent device tracker from creating invalid YAML (#1774)
This commit is contained in:
1 parent
446d367aeb
commit
b87e2437aa
2 files changed
+14
No files matched your search
@@ -204,6 +204,7 @@ class DeviceTracker(object):
|
||||
return
|
||||
|
||||
# If no device can be found, create it
|
||||
dev_id = util.ensure_unique_string(dev_id, self.devices.keys())
|
||||
device = Device(
|
||||
self.hass, self.consider_home, self.home_range, self.track_new,
|
||||
dev_id, mac, (host_name or dev_id).replace('_', ' '))
|
||||
|
||||
Reference in new issue
Block a user