mirror of
https://github.com/ep1cman/unifi-protect-backup.git
synced 2025-12-05 23:53:30 +00:00
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:
@@ -234,6 +234,10 @@ class UnifiProtectBackup:
|
|||||||
# Start the pyunifiprotect connection by calling `update`
|
# Start the pyunifiprotect connection by calling `update`
|
||||||
logger.info("Connecting to Unifi Protect...")
|
logger.info("Connecting to Unifi Protect...")
|
||||||
await self._protect.update()
|
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
|
# Subscribe to the websocket
|
||||||
self._unsub = self._protect.subscribe_websocket(self._websocket_callback)
|
self._unsub = self._protect.subscribe_websocket(self._websocket_callback)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user