mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Make sure that device trackers is always a list during creation (#21193)
This commit is contained in:
parent
9ce8f4737d
commit
600070af3a
@ -176,7 +176,7 @@ class PersonManager:
|
||||
CONF_ID: uuid.uuid4().hex,
|
||||
CONF_NAME: name,
|
||||
CONF_USER_ID: user_id,
|
||||
CONF_DEVICE_TRACKERS: device_trackers,
|
||||
CONF_DEVICE_TRACKERS: device_trackers or [],
|
||||
}
|
||||
self.storage_data[person[CONF_ID]] = person
|
||||
self._async_schedule_save()
|
||||
|
Loading…
x
Reference in New Issue
Block a user