Media platform Yamaha takes too long to start, and will not create entity anymore.
Restart Yamahareceiver does not help… Nothing wrong with network, Spotify-app works fine with receiver.
Does anyone have ideas?
1 Like
tom_l
August 13, 2024, 8:51am
2
Roll back to version 2024.7.4 and see if it works.
There were updates to the Yamaha integration in 2024.8.0 and they were not good.
opened 08:58AM - 10 Aug 24 UTC
integration: media_player
integration: yamaha
### The problem
The yahama integration is broken after upgrade to 2024.8.0, it … was working fine until I upgraded.
### What version of Home Assistant Core has the issue?
core-2024.8.0
### What was the last working version of Home Assistant Core?
core-2024.7.3
### What type of installation are you running?
Home Assistant OS
### Integration causing the issue
yamaha
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/yamaha
### Diagnostics information
_No response_
### Example YAML snippet
```yaml
- platform: yamaha
name: yamaha
host: x.x.x.x
source_ignore:
- "AV1"
- "AV2"
- "AV3"
- "AV4"
- "AV5"
- "AV6"
- "AUX"
- "HDMI5"
- "HDMI6"
source_names:
HDMI1: "FireTV"
HDMI3: "Chromecast"
HDMI2: "SteamDeck"
HDMI4: "GamePC"
```
### Anything in the logs that might be useful for us?
```txt
Logger: homeassistant.components.media_player
Source: helpers/entity_platform.py:364
integration: Media player ([documentation](https://www.home-assistant.io/integrations/media_player), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+media_player%22))
First occurred: 10:02:17 AM (1 occurrences)
Last logged: 10:02:17 AM
Error while setting up yamaha platform for media_player
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in _async_setup_platform
await asyncio.shield(awaitable)
File "/usr/src/homeassistant/homeassistant/components/yamaha/media_player.py", line 167, in async_setup_platform
zone_ctrls = await hass.async_add_executor_job(_discovery, config_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/yamaha/media_player.py", line 136, in _discovery
for recv in rxv.find():
^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/rxv/__init__.py", line 19, in find
return [RXV(**ri._asdict()) for ri in ssdp.discover(timeout=timeout)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/rxv/ssdp.py", line 68, in discover
m = re.search(r"LOCATION:(.+)", res.decode('utf-8'), re.IGNORECASE)
^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc5 in position 1: invalid continuation byte
```
### Additional information
_No response_