-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
Closed as not planned
Description
The problem
Hi,
I noted a SamsungTV related exception in my log. Although there is a Samsung TV in my network, I ignored the integration (not configured ever). So that exception is most likely part of the discover code for Samsung TV devices
What version of Home Assistant Core has the issue?
Core2025.2.5
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Samsung TV
Link to integration documentation on our website
https://www.home-assistant.io/integrations/samsungtv/
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Logger: homeassistant
Source: components/samsungtv/bridge.py:577
First occurred: 11:24:28 (1 occurrences)
Last log
7ADF
ged: 11:24:28
Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/aiohttp/client_proto.py", line 92, in connection_lost
uncompleted = self._parser.feed_eof()
File "aiohttp/_http_parser.pyx", line 511, in aiohttp._http_parser.HttpParser.feed_eof
aiohttp.http_exceptions.ContentLengthError: 400, message:
Not enough data for satisfy content length header.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1309, in async_init
flow, result = await self._async_init(flow_id, handler, context, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1344, in _async_init
result = await self._async_handle_step(flow, flow.init_step, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 490, in _async_handle_step
result: _FlowResultT = await getattr(flow, method)(user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/samsungtv/config_flow.py", line 501, in async_step_dhcp
await self._async_set_device_unique_id()
File "/usr/src/homeassistant/homeassistant/components/samsungtv/config_flow.py", line 160, in _async_set_device_unique_id
if not await self._async_get_and_check_device_info():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/samsungtv/config_flow.py", line 228, in _async_get_and_check_device_info
result, _method, info = await self._async_get_device_info_and_method()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/samsungtv/config_flow.py", line 217, in _async_get_device_info_and_method
result, _, method, info = await async_get_device_info(self.hass, self._host)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/samsungtv/bridge.py", line 109, in async_get_device_info
if info := await bridge.async_device_info():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/samsungtv/bridge.py", line 577, in async_device_info
device_info: dict[str, Any] = await rest_api.rest_device_info()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/samsungtvws/async_rest.py", line 58, in rest_device_info
return await self._rest_request("")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/samsungtvws/async_rest.py", line 50, in _rest_request
return helper.process_api_response(await resp.text())
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/client_reqrep.py", line 1260, in text
await self.read()
File "/usr/local/lib/python3.13/site-packages/aiohttp/client_reqrep.py", line 1218, in read
self._body = await self.content.read()
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/streams.py", line 418, in read
block = await self.readany()
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/aiohttp/streams.py", line 440, in readany
await self._wait("readany")
File "/usr/local/lib/python3.13/site-packages/aiohttp/streams.py", line 347, in _wait
await waiter
aiohttp.client_exceptions.ClientPayloadError: Response payload is not completed: <ContentLengthError: 400, message='Not enough data for satisfy content length header.'>
Additional information
Related Integration is ignored: