mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
device_tracker - No longer keep writing same new devices to known_devices.csv
This commit is contained in:
parent
81be3811dc
commit
7c404a0551
@ -177,8 +177,11 @@ class DeviceTracker(object):
|
||||
# Did we find any devices that we didn't know about yet?
|
||||
new_devices = found_devices - self.untracked_devices
|
||||
|
||||
if new_devices:
|
||||
self.untracked_devices.update(new_devices)
|
||||
|
||||
# Write new devices to known devices file
|
||||
if not self.invalid_known_devices_file and new_devices:
|
||||
if not self.invalid_known_devices_file:
|
||||
|
||||
known_dev_path = self.hass.get_config_path(KNOWN_DEVICES_FILE)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user