Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log the response that triggered the error #8

Merged
merged 1 commit into from
Sep 12, 2024
Merged

Log the response that triggered the error #8

merged 1 commit into from
Sep 12, 2024

Conversation

Jalle19
Copy link
Contributor

@Jalle19 Jalle19 commented Sep 12, 2024

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 942, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1300, in async_device_update
    await self.async_update()
  File "/config/custom_components/vinx/media_player.py", line 97, in async_update
    video_channel_id = await self._lw3.get_property("/SYS/MB/PHY.VideoChannelId")
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/vinx/lw3.py", line 179, in get_property
    response = await asyncio.wait_for(self._run_get(path), self._timeout)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/asyncio/tasks.py", line 520, in wait_for
    return await fut
           ^^^^^^^^^
  File "/config/custom_components/vinx/lw3.py", line 155, in _run_get
    return await self._read_and_parse_response()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/vinx/lw3.py", line 143, in _read_and_parse_response
    result = parse_response(response.strip())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/vinx/lw3.py", line 94, in parse_response
    return parse_single_line_response(lines[1])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/vinx/lw3.py", line 70, in parse_single_line_response
    match get_response_type(response):
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/vinx/lw3.py", line 66, in get_response_type
    raise ValueError("Unknown response type")
ValueError: Unknown response type
``

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 942, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1300, in async_device_update
    await self.async_update()
  File "/config/custom_components/vinx/media_player.py", line 97, in async_update
    video_channel_id = await self._lw3.get_property("/SYS/MB/PHY.VideoChannelId")
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/vinx/lw3.py", line 179, in get_property
    response = await asyncio.wait_for(self._run_get(path), self._timeout)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/asyncio/tasks.py", line 520, in wait_for
    return await fut
           ^^^^^^^^^
  File "/config/custom_components/vinx/lw3.py", line 155, in _run_get
    return await self._read_and_parse_response()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/vinx/lw3.py", line 143, in _read_and_parse_response
    result = parse_response(response.strip())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/vinx/lw3.py", line 94, in parse_response
    return parse_single_line_response(lines[1])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/vinx/lw3.py", line 70, in parse_single_line_response
    match get_response_type(response):
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/vinx/lw3.py", line 66, in get_response_type
    raise ValueError("Unknown response type")
ValueError: Unknown response type
@Jalle19 Jalle19 merged commit 1615f2a into main Sep 12, 2024
2 checks passed
@Jalle19 Jalle19 deleted the tweaks branch September 12, 2024 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant