simbaja / ha_oppoudp

Home Assistant Integration - Oppo UDP-20x
MIT License
8 stars 2 forks source link

Change of source doesn't work #1

Closed LeoeLeoeL closed 1 year ago

LeoeLeoeL commented 2 years ago

The selection available showed in the picture image doesn't work. HA return the following message in the log:

Logger: homeassistant.components.websocket_api.http.connection Source: custom_components/oppo_udp/media_player.py:397 Integration: Home Assistant WebSocket API (documentation, issues) First occurred: 18:19:15 (2 occurrences) Last logged: 18:19:23

[140284833589808] 'Hdmi In' [140284833589808] 'Hdmi Arc' Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 190, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1630, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1667, 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 self.hass.helpers.service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 668, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 930, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 705, in _handle_entity_call await result File "/config/custom_components/oppo_udp/media_player.py", line 397, in async_select_source await self.device.async_set_input_source(SetInputSource[source]) File "/usr/local/lib/python3.9/enum.py", line 432, in getitem return cls._membermap[name] KeyError: 'Hdmi In'

LeoeLeoeL commented 2 years ago

excuse me, is it useful to write here?

simbaja commented 2 years ago

I do see it; however, I'm absolutely slammed with work at the moment and haven't had a chance to review and resolve. My apologies.

LeoeLeoeL commented 2 years ago

Tks for answering. Don't worry, take your time.

35gh commented 1 year ago

Hi @simbaja, would you be able to look into this issue? Are you still supporting this integration? Thank you!

simbaja commented 1 year ago

I just pushed an update, haven't had a chance to test it though as I've been traveling from work and away from my device. Hope it helps.

LeoeLeoeL commented 1 year ago

It works! Tks