fronzbot / blinkpy

A Python library for the Blink Camera system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Preview of Blink mini thumbnail

sungilaka opened this issue · comments

Describe the bug
When trying to preview the thumbnail of a blink mini in a picture card, no image is shown and errors are generated.
image

To Reproduce
Steps to reproduce the behavior:

  1. Add a picture card with blink mini thumbnail to your dashboard

image

Expected behavior
Show the last picture of the camera.

Home Assistant version (if applicable):
Home Assistant 2022.4.0b3

blinkpy version (not needed if filling out Home Assistant version):
0.19.0

Log Output/Additional Information
I was hoping to be able to show images of the camera in my dashboard (as I already know, that i live view is not possible?)

I already updated Home Assistant, because of all the reports of a similar bug, but in my personal case (maybe I did anything wrong, as it never worked before and I just started with Home Assistant) it does not work.

Error when looking at the dashboard with the preview card:
Logger: aiohttp.server
Source: components/blink/camera.py:88
First occurred: 14:11:24 (124 occurrences)
Last logged: 14:50:45

Error handling request
`Logger: aiohttp.server
Source: components/blink/camera.py:88
First occurred: 14:11:24 (124 occurrences)
Last logged: 14:50:45

Error handling request
Traceback (most recent call last):
File "/home/homeassistant/.local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/home/homeassistant/.local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/home/homeassistant/.local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
File "/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/http/ban.py", line 79, in ban_middleware
return await handler(request)
File "/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/http/auth.py", line 219, in auth_middleware
return await handler(request)
File "/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/http/view.py", line 137, in handle
result = await result
File "/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/camera/init.py", line 724, in get
return await self.handle(request, camera)
File "/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/camera/init.py", line 742, in handle
image = await _async_get_image(
File "/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/camera/init.py", line 163, in _async_get_image
if image_bytes := await camera.async_camera_image(
File "/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/camera/init.py", line 569, in async_camera_image
return await self.hass.async_add_executor_job(
File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/blink/camera.py", line 88, in camera_image
return self._camera.image_from_cache.content
AttributeError: 'NoneType' object has no attribute 'content'
`

Sometimes, but not when clicking on the button to trigger the camera, another error appears:
2022-04-03 13:48:52 WARNING (SyncWorker_8) [urllib3.connectionpool] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f42e10d90>: Failed to establish a new connection: [Errno -2] Name or service not known')': / 2022-04-03 13:48:52 WARNING (SyncWorker_5) [urllib3.connectionpool] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f42a1df40>: Failed to establish a new connection: [Errno -2] Name or service not known')': / 2022-04-03 13:48:52 WARNING (SyncWorker_2) [urllib3.connectionpool] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f5a4df8b0>: Failed to establish a new connection: [Errno -2] Name or service not known')': / 2022-04-03 13:48:54 WARNING (SyncWorker_8) [urllib3.connectionpool] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f42836670>: Failed to establish a new connection: [Errno -2] Name or service not known')': / 2022-04-03 13:48:54 WARNING (SyncWorker_5) [urllib3.connectionpool] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f42e35850>: Failed to establish a new connection: [Errno -2] Name or service not known')': / 2022-04-03 13:48:54 WARNING (SyncWorker_2) [urllib3.connectionpool] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f42e35ca0>: Failed to establish a new connection: [Errno -2] Name or service not known')': / 2022-04-03 13:48:58 WARNING (SyncWorker_8) [urllib3.connectionpool] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f41fe2af0>: Failed to establish a new connection: [Errno -2] Name or service not known')': / 2022-04-03 13:48:58 ERROR (SyncWorker_8) [blinkpy.auth] Connection error. Endpoint https://rest-e006.immedia-semi.com1648989584.jpg possibly down or throttled. 2022-04-03 13:48:58 WARNING (SyncWorker_5) [urllib3.connectionpool] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f41fe2f40>: Failed to establish a new connection: [Errno -2] Name or service not known')': / 2022-04-03 13:48:58 WARNING (SyncWorker_2) [urllib3.connectionpool] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f41fbeb80>: Failed to establish a new connection: [Errno -2] Name or service not known')': / 2022-04-03 13:48:58 ERROR (SyncWorker_5) [blinkpy.auth] Connection error. Endpoint https://rest-e006.immedia-semi.com1648989584.jpg possibly down or throttled. 2022-04-03 13:48:58 ERROR (SyncWorker_2) [blinkpy.auth] Connection error. Endpoint https://rest-e006.immedia-semi.com1648989584.jpg possibly down or throttled. 2022-04-03 13:50:40 ERROR (MainThread) [aiohttp.server] Error handling request

seems a bit like this?

Are you positive you're running the April beta of home-assistant? This was confirmed to be fixed by multiple users with the 0.19.0 library and the thumbnail url you have should not even be possible anymore #551

Wow, you are fast :D
I´m sure with the HomeAssisstant version, but not sure if it uses a old version of blinkpy...
image

Ha not all the time, I just happen to be on right now.

Yeah that version of HA is using the latest of home assistant. My only two guesses would be to simply try and force a refresh via the service (blink.blink_update I believe) or to try just re-installing blink. You shouldn't have to do that, but I really don't know why this bug would persist otherwise.

On blink_update there is a warning:
`Logger: urllib3.connectionpool
Source: /usr/lib/python3/dist-packages/urllib3/connectionpool.py:780
First occurred: 15:50:40 (26 occurrences)
Last logged: 15:55:21

Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f4c2e50d0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f4c3110a0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f3dc13430>: Failed to establish a new connection: [Errno -2] Name or service not known')': /
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f4c311430>: Failed to establish a new connection: [Errno -2] Name or service not known')': /
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f4c3105b0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /`

And still the same error with camera.py

I already removed the blink integration and re-installed it, but it also did not help.

Same problem but in 2022.3.8 I already removed the blink integration and re-installed it, but it also did not help.
My camera is Blink Outdoor.

Logger: blinkpy.auth
Source: /usr/local/lib/python3.9/site-packages/blinkpy/auth.py:195
First occurred: 3 de abril de 2022, 22:16:58 (397 occurrences)
Last logged: 09:13:36
Error 1:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 367, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 573, in _async_call_service_step
await self._async_run_long_action(service_task)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 534, in _async_run_long_action
long_task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1636, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1673, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/components/script/init.py", line 282, in service_handler
await script_entity.async_turn_on(
File "/usr/src/homeassistant/homeassistant/components/script/init.py", line 386, in async_turn_on
await coro
File "/usr/src/homeassistant/homeassistant/components/script/init.py", line 412, in _async_run
return await self.script.async_run(script_vars, context)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1243, in async_run
await asyncio.shield(run.async_run())
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 349, in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 367, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 570, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1636, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1673, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 671, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 949, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 708, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 960, in async_handle_snapshot_service
image = await camera.async_camera_image()
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 583, 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 88, in camera_image
return self._camera.image_from_cache.content
AttributeError: 'NoneType' object has no attribute 'content'

Error 2:
Connection error. Endpoint https://rest-e007.immedia-semi.com1649055609.jpg possibly down or throttled.
Connection error. Endpoint https://rest-e007.immedia-semi.com1649055633.jpg possibly down or throttled.
Connection error. Endpoint https://rest-e007.immedia-semi.com1649055637.jpg possibly down or throttled.
Connection error. Endpoint https://rest-e007.immedia-semi.com1649055660.jpg possibly down or throttled.
Connection error. Endpoint https://rest-e007.immedia-semi.com1649055665.jpg possibly down or throttled.

Same problem but in 2022.3.8 I already removed the blink integration and re-installed it, but it also did not help. My camera is Blink Outdoor.

Logger: blinkpy.auth Source: /usr/local/lib/python3.9/site-packages/blinkpy/auth.py:195 First occurred: 3 de abril de 2022, 22:16:58 (397 occurrences) Last logged: 09:13:36 Error 1:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 367, in _async_step await getattr(self, handler)() File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 573, in _async_call_service_step await self._async_run_long_action(service_task) File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 534, in _async_run_long_action long_task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1636, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1673, in _execute_service await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)( File "/usr/src/homeassistant/homeassistant/components/script/init.py", line 282, in service_handler await script_entity.async_turn_on( File "/usr/src/homeassistant/homeassistant/components/script/init.py", line 386, in async_turn_on await coro File "/usr/src/homeassistant/homeassistant/components/script/init.py", line 412, in _async_run return await self.script.async_run(script_vars, context) File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1243, in async_run await asyncio.shield(run.async_run()) File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 349, in async_run await self._async_step(log_exceptions=False) File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 367, in _async_step await getattr(self, handler)() File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 570, in _async_call_service_step await service_task File "/usr/src/homeassistant/homeassistant/core.py", line 1636, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1673, in _execute_service await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)( File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service await self.hass.helpers.service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 671, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 949, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 708, in _handle_entity_call await result File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 960, in async_handle_snapshot_service image = await camera.async_camera_image() File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 583, 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 88, in camera_image return self._camera.image_from_cache.content AttributeError: 'NoneType' object has no attribute 'content'

Error 2: Connection error. Endpoint https://rest-e007.immedia-semi.com1649055609.jpg possibly down or throttled. Connection error. Endpoint https://rest-e007.immedia-semi.com1649055633.jpg possibly down or throttled. Connection error. Endpoint https://rest-e007.immedia-semi.com1649055637.jpg possibly down or throttled. Connection error. Endpoint https://rest-e007.immedia-semi.com1649055660.jpg possibly down or throttled. Connection error. Endpoint https://rest-e007.immedia-semi.com1649055665.jpg possibly down or throttled.

can you please try to update to my version? or at least update blinkpy to 0.19.0, as at least one error should be fixed there.

Same problem but in 2022.3.8 I already removed the blink integration and re-installed it, but it also did not help. My camera is Blink Outdoor.
Logger: blinkpy.auth Source: /usr/local/lib/python3.9/site-packages/blinkpy/auth.py:195 First occurred: 3 de abril de 2022, 22:16:58 (397 occurrences) Last logged: 09:13:36 Error 1:
Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 367, in _async_step await getattr(self, handler)() File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 573, in _async_call_service_step await self._async_run_long_action(service_task) File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 534, in _async_run_long_action long_task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1636, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1673, in _execute_service await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)( File "/usr/src/homeassistant/homeassistant/components/script/init.py", line 282, in service_handler await script_entity.async_turn_on( File "/usr/src/homeassistant/homeassistant/components/script/init.py", line 386, in async_turn_on await coro File "/usr/src/homeassistant/homeassistant/components/script/init.py", line 412, in _async_run return await self.script.async_run(script_vars, context) File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1243, in async_run await asyncio.shield(run.async_run()) File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 349, in async_run await self._async_step(log_exceptions=False) File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 367, in _async_step await getattr(self, handler)() File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 570, in _async_call_service_step await service_task File "/usr/src/homeassistant/homeassistant/core.py", line 1636, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1673, in _execute_service await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)( File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service await self.hass.helpers.service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 671, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 949, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 708, in _handle_entity_call await result File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 960, in async_handle_snapshot_service image = await camera.async_camera_image() File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 583, 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 88, in camera_image return self._camera.image_from_cache.content AttributeError: 'NoneType' object has no attribute 'content'
Error 2: Connection error. Endpoint https://rest-e007.immedia-semi.com1649055609.jpg possibly down or throttled. Connection error. Endpoint https://rest-e007.immedia-semi.com1649055633.jpg possibly down or throttled. Connection error. Endpoint https://rest-e007.immedia-semi.com1649055637.jpg possibly down or throttled. Connection error. Endpoint https://rest-e007.immedia-semi.com1649055660.jpg possibly down or throttled. Connection error. Endpoint https://rest-e007.immedia-semi.com1649055665.jpg possibly down or throttled.

can you please try to update to my version? or at least update blinkpy to 0.19.0, as at least one error should be fixed there.

I have 0.19.0 version installed.
image

Good news, when updating to version 2022.4 everything works again. Thank you very much

@sungilaka - I have a Mini camera and it looks like I have the same problem: no picture updating in home-assistant. However, when I try the library as standalone, I can download the image just fine. So can you try the following:

  1. Start blinkpy via command line (view readme for quick start guide)
  2. Report the value of blink.cameras[<cameraname>].thumbnail
  3. Run the command blink.cameras[<cameraname>].image_to_file('/some/path/for/image.jpg')
  4. See if it saved an image and you can open it.

Running through those steps on my end results in a successful image and Home-Assistant should be doing the same thing, but I don't see any thumbnail in the GUI. I just want to confirm we see the same issues.

It seems to be working as standalone.

The thumbnail functions gives the following URL: https://rest-e006.immedia-semi.com/api/v3/media/accounts/14978/networks/14585/catalina/14041/thumbnail/thumbnail.jpg?ts=1648990353&ext=

And the image_to_file function save a image of the camera which can be viewed.
Even taking new images is working there.

@fronzbot Did you already find some time to have a look on it? I updated to Home Assistant Core 2022.5.0b5 in the meantime, as I saw, that the fix for the issue you mentioned was merged to this version. As far as I can say, it did not fix my problem.

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within seven days. Thank you for your contributions.

well, as far as I can see, the problem is still there

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within seven days. Thank you for your contributions.

commented

This issue is now being closed due to inactivity.

Problem is still there.

FYI I cannot recreate these issues on my end so I'm unable to determine a fix

Is there any way I can help you? I have the mini outdoor cam and also the error on the latest version.

For anyone else wandering in here looking for a solution, use the blink app on your device to force a refresh of the captured image used for a camera (the [ ] button). Then, in Home Assistant, go to Developer Tools -> Services and type in "blink" and select the line for blink.blink_update and the use the [Call Service] button. That should pull the latest images from Blink. This eliminated the missing thumbnail error for me.

Well, triggering an update of the camera thumbnail works (I think with errors, but it works). The main problem might be, that homeassistant can´t load the image. When I trigger "camera.snapshot" for my blink mini outdoor (and maybe the outdoor is the problem?), the following error appears:

`Logger: homeassistant.components.websocket_api.http.connection
Source: components/blink/camera.py:91
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 19:03:26 (1 occurrences)
Last logged: 19:03:26

[547340736544] 'NoneType' object has no attribute 'content'
Traceback (most recent call last):
File "/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/websocket_api/commands.py", line 199, in handle_call_service
await hass.services.async_call(
File "/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/core.py", line 1713, in async_call
task.result()
File "/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/core.py", line 1750, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/helpers/entity_component.py", line 204, in handle_service
await service.entity_service_call(
File "/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/helpers/service.py", line 676, in entity_service_call
future.result() # pop exception if have
File "/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/helpers/entity.py", line 930, in async_request_call
await coro
File "/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/helpers/service.py", line 713, in _handle_entity_call
await result
File "/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/camera/init.py", line 911, in async_handle_snapshot_service
image = await camera.async_camera_image()
File "/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/camera/init.py", line 571, in async_camera_image
return await self.hass.async_add_executor_job(
File "/usr/lib/python3.9/concurrent/futures/thread.py", line 52, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/homeassistant/.local/lib/python3.9/site-packages/homeassistant/components/blink/camera.py", line 91, in camera_image
return self._camera.image_from_cache.content
AttributeError: 'NoneType' object has no attribute 'content'
`