-
Notifications
You must be signed in to change notification settings - Fork 144
Cannot Add More Than One Blink Doorbell #580
Description
Describe the bug
When adding more than one Blink Doorbell no additional doorbell is added. The existing doorbell takes on the name of the new doorbell. It appears that a unique_id for the new doorbell may not be created.
To Reproduce
Steps to reproduce the behavior:
- Add additional Blink Doorbell to existing Blink location.
- Reload the Blink Integration in HA.
Expected behavior
Should be additional device and associated entities added to the Blink integration after reload.
Home Assistant version (if applicable): <core-2022.6.0b2>
**blinkpy version 17.93
Log Output/Additional Information
Logger: homeassistant.components.camera
Source: helpers/entity_platform.py:598
Integration: Camera (documentation, issues)
First occurred: 5:44:12 PM (2 occurrences)
Last logged: 5:49:20 PM
Platform blink does not generate unique IDs. ID None-camera already exists - ignoring camera.blink_pagosa_doorbell
Logger: aiohttp.server
Source: components/blink/camera.py:91
First occurred: 5:46:05 PM (1 occurrences)
Last logged: 5:46:05 PM
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 94, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 79, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 220, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 137, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 741, in get
return await self.handle(request, camera)
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 759, in handle
image = await _async_get_image(
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 179, in _async_get_image
if image_bytes := await camera.async_camera_image(
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 586, in async_camera_image
return await self.hass.async_add_executor_job(
File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/blink/camera.py", line 91, in camera_image
return self._camera.image_from_cache.content
AttributeError: 'NoneType' object has no attribute 'content'
PASTE LOG OUTPUT HERE