realthk / asyncpioneer

Async Pioneer AVR for Home Assitant
27 stars 24 forks source link

Error doing job: Task exception was never retrieved #29

Open AsoGTR opened 2 years ago

AsoGTR commented 2 years ago

Hello,

for some time now, after an update HA, I have been having problems with a large number of errors, after update asyncpioneer to the lasted version is same like before:

Logger: homeassistant Source: custom_components/asyncpioneer/media_player.py:938 Integration: asyncpioneer (documentation) First occurred: 19:58:20 (602 occurrences) Last logged: 21:38:31

Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 794, in _update_entity_states await asyncio.gather(*tasks) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 519, in async_update_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 572, in _async_write_ha_state attr.update(self.state_attributes or {}) File "/config/custom_components/asyncpioneer/media_player.py", line 1147, in state_attributes state_attr = { File "/config/custom_components/asyncpioneer/media_player.py", line 1149, in in ATTR_TO_PROPERTY if getattr(self, attr) is not None File "/config/custom_components/asyncpioneer/media_player.py", line 938, in current_sound_mode return LISTENING_MODES[self._current_sound_mode] KeyError: '0041'

next:

Logger: homeassistant.components.websocket_api.http.connection Source: custom_components/asyncpioneer/media_player.py:938 Integration: Home Assistant WebSocket API (documentation, issues) First occurred: 19:59:41 (7 occurrences) Last logged: 20:00:42

[140652585710208] '0041' Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 199, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1713, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_service await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)( File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service await service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 693, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 519, in async_update_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 572, in _async_write_ha_state attr.update(self.state_attributes or {}) File "/config/custom_components/asyncpioneer/media_player.py", line 1147, in state_attributes state_attr = { File "/config/custom_components/asyncpioneer/media_player.py", line 1149, in in ATTR_TO_PROPERTY if getattr(self, attr) is not None File "/config/custom_components/asyncpioneer/media_player.py", line 938, in current_sound_mode return LISTENING_MODES[self._current_sound_mode] KeyError: '0041'

and last:

Logger: homeassistant Source: custom_components/asyncpioneer/media_player.py:766 Integration: asyncpioneer (documentation) First occurred: 19:58:15 (1 occurrences) Last logged: 19:58:15

Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/config/custom_components/asyncpioneer/media_player.py", line 525, in readdata self.parseData(data.decode()) File "/config/custom_components/asyncpioneer/media_player.py", line 766, in parseData LISTENING_MODES[self._current_sound_mode]) KeyError: '0041'

Thank you for help.