You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have similar issue but right after I click for Media -> Tapo: recordings:
Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/tapo_control/media_source.py:111
Integration: Home Assistant WebSocket API ([documentation](https://www.home-assistant.io/integrations/websocket_api), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+websocket_api%22))
First occurred: 21:55:52 (1 occurrences)
Last logged: 21:55:52
[281472670478784] Error handling message: Unknown error (unknown_error) Jakub from 192.168.66.144 (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 26, in _handle_async_response
await func(hass, connection, msg)
File "/usr/src/homeassistant/homeassistant/components/media_source/__init__.py", line 174, in websocket_browse_media
media = await async_browse_media(hass, msg.get("media_content_id", ""))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/media_source/__init__.py", line 125, in async_browse_media
item = await _get_media_item(hass, media_content_id, None).async_browse()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/media_source/models.py", line 79, in async_browse
return await self.async_media_source().async_browse_media(self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/tapo_control/media_source.py", line 105, in async_browse_media
children=[
^
File "/config/custom_components/tapo_control/media_source.py", line 111, in <listcomp>
title=self.hass.data[DOMAIN][entry]["name"],
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
KeyError: 'name'
Description
When trying to view recordings in the Media area of HA, if you have no SD card inserted you will received an unhandled exception.
Reproduction Steps
Expected behavior
See a message to insert SD card.
If applicable, add error logs.
Device Firmware
1.3.6 Build 230424 Rel.77225n(4555)
Integration Version
5.4.2
Using stream component
Yes
Does camera work via official integrations?
Yes
Camera has all attributes filled out in developer tools
Yes
HASS Environment
OS
Search for similar issues
Yes
Additional information
The text was updated successfully, but these errors were encountered: