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
When my LinkPlay device is powered off, and the connection from Home Assistant is not possible anymore, this library wants to display the warning message at
"Failed communicating with LinkPlayDevice (UPnP) '%s': %s", self._name, type(error)
however it gives a NameError instead, as the error variable is not defined:
2024-02-07 06:53:15.769 ERROR (MainThread) [homeassistant.helpers.entity] Update for media_player.wa_250 fails
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/async_upnp_client/aiohttp.py", line 98, in async_http_request
resp_body = await response.read()
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 1100, in read
self._body = await self.content.read()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/streams.py", line 373, in read
block = await self.readany()
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/streams.py", line 395, in readany
await self._wait("readany")
File "/usr/local/lib/python3.11/site-packages/aiohttp/streams.py", line 301, in _wait
with self._timer:
File "/usr/local/lib/python3.11/site-packages/aiohttp/helpers.py", line 735, in __exit__
raise asyncio.TimeoutError from None
TimeoutError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/config/custom_components/linkplay/media_player.py", line 639, in async_update
self._upnp_device = await self._factory.async_create_device(url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/async_upnp_client/client_factory.py", line 72, in async_create_device
root_el = await self._async_get(description_url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/async_upnp_client/client_factory.py", line 394, in _async_get
) = await self.requester.async_http_request("GET", url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/async_upnp_client/aiohttp.py", line 117, in async_http_request
raise UpnpConnectionTimeoutError(repr(err)) from err
async_upnp_client.exceptions.UpnpConnectionTimeoutError: [Errno TimeoutError()] None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 898, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1216, in async_device_update
await self.async_update()
File "/config/custom_components/linkplay/media_player.py", line 642, in async_update
"Failed communicating with LinkPlayDevice (UPnP) '%s': %s", self._name, type(error)
^^^^^
NameError: name 'error' is not defined
The text was updated successfully, but these errors were encountered:
When my LinkPlay device is powered off, and the connection from Home Assistant is not possible anymore, this library wants to display the warning message at
home-assistant-custom-components-linkplay/custom_components/linkplay/media_player.py
Line 628 in 2822455
however it gives a NameError instead, as the
error
variable is not defined:The text was updated successfully, but these errors were encountered: