Log camera ID -> name mapping at start

Makes it easier to figure out what the camera IDs are for ignoring them
This commit is contained in:
Sebastian Goscik
2022-02-21 00:35:50 +00:00
parent 0dd9e8e91b
commit 773b90ba4f

View File

@@ -234,6 +234,10 @@ class UnifiProtectBackup:
# Start the pyunifiprotect connection by calling `update`
logger.info("Connecting to Unifi Protect...")
await self._protect.update()
logger.info("Found cameras:")
for camera in self._protect.bootstrap.cameras.values():
logger.info(f" - {camera.id}: {camera.name}")
# Subscribe to the websocket
self._unsub = self._protect.subscribe_websocket(self._websocket_callback)