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

Speakers temporary offline causes error messages in the log #55

Open
greentux opened this issue Dec 9, 2023 · 0 comments
Open

Speakers temporary offline causes error messages in the log #55

greentux opened this issue Dec 9, 2023 · 0 comments

Comments

@greentux
Copy link

greentux commented Dec 9, 2023

I configured some speakers, but no one has to be temporary offline.
This causes error messages in the Log.

KeyError: 'WZ'
2023-12-09 23:25:22.601 ERROR (MainThread) [homeassistant.helpers.entity] Update for media_player.room_wz fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 698, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 959, in async_device_update
    await self.async_update()
  File "/config/custom_components/teufel_raumfeld/media_player.py", line 876, in async_update
    elif self._raumfeld.room_is_spotify_single_room(self._room):
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/hassfeld/__init__.py", line 449, in room_is_spotify_single_room
    room_udn = self.resolve["room_to_udn"][room]
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: 'WZ'
2023-12-09 23:25:26.953 ERROR (MainThread) [homeassistant.helpers.entity] Update for sensor.connector_wz_2_softwareversion fails
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 698, in async_update_ha_state
    await self.async_device_update()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 959, in async_device_update
    await self.async_update()
  File "/config/custom_components/teufel_raumfeld/sensor.py", line 106, in async_update
    self._state = await self._get_state(self._device_udn)
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/hassfeld/__init__.py", line 1067, in async_get_device_info
    location = self.device_udn_to_location(udn)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/hassfeld/__init__.py", line 380, in device_udn_to_location
    device_location = self.resolve["udn_to_devloc"][device_udn]
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^

Any hints, how to handle this?

thx

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

No branches or pull requests

1 participant