Make sure that device trackers is always a list during creation (#21193)

This commit is contained in:
Paulus Schoutsen
2019-02-18 13:04:04 -08:00
committed by GitHub
parent 9ce8f4737d
commit 600070af3a

View File

@@ -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()