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

Commits on Sep 11, 2024

  1. Log the response that triggered the error

    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 committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    5e77dc1 View commit details
    Browse the repository at this point in the history