spdustin / home-assistant-custom-components-linkplay

LinkPlay-adjacent WiiM Mini/Pro integration for Home Assistant. Supports multiroom, Media Browser, and snapshot and restore functionality for TTS. Compatible with Mini Media Player card.
3 stars 2 forks source link

Latest Home Assistant Core Update 2024.5.0 Broke "Linkplay-adjacent WiiM speakers" #2

Closed royf007 closed 6 months ago

royf007 commented 7 months ago

Since updating Home Assistant Core to 2024.5.0, it has broken the integration. Please see the logs:

Linkplay Invalid Config Log Details 2024-05-02 10:02:27.551 WARNING (SyncWorker_6) [homeassistant.loader] We found a custom integration linkplay which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-05-02 10:02:28.692 WARNING (SyncWorker_10) [homeassistant.helpers.frame] Detected that custom integration 'linkplay' calls async_register from a thread at custom_components/linkplay/__init__.py, line 154: hass.services.async_register(, please report it to the author of the 'linkplay' custom integration 2024-05-02 10:02:28.704 ERROR (MainThread) [homeassistant.setup] Error during setup of component linkplay File "/config/custom_components/linkplay/__init__.py", line 154, in setup RuntimeError: Detected that custom integration 'linkplay' calls async_register from a thread at custom_components/linkplay/__init__.py, line 154: hass.services.async_register(. Please report it to the author of the 'linkplay' custom integration. 2024-05-02 10:02:28.706 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform 'linkplay.media_player': Unable to set up component. 2024-05-02 10:02:28.708 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform 'linkplay.media_player': Unable to set up component. 2024-05-02 10:02:28.708 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform 'linkplay.media_player': Unable to set up component. 2024-05-02 10:02:28.708 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform 'linkplay.media_player': Unable to set up component. 2024-05-02 10:02:28.708 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform 'linkplay.media_player': Unable to set up component. 2024-05-02 10:02:28.708 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform 'linkplay.media_player': Unable to set up component.
PalmDK commented 6 months ago

You need to change line 75 in init.py to: async def async_setup(hass, config): And then restart

royf007 commented 6 months ago

Perfect! Thank you again!

On Sat, May 4, 2024 at 3:51 PM PalmDK @.***> wrote:

You need to change line 75 in init.py to: async def async_setup(hass, config): And then restart

— Reply to this email directly, view it on GitHub https://github.com/spdustin/home-assistant-custom-components-linkplay/issues/2#issuecomment-2094361705, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABF66EVRK4RNLVFH2R7LOKTZAU34VAVCNFSM6AAAAABHD2APYGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJUGM3DCNZQGU . You are receiving this because you authored the thread.Message ID: <spdustin/home-assistant-custom-components-linkplay/issues/2/2094361705@ github.com>

spdustin commented 6 months ago

I updated the repo to fix that, thanks. However, I am archiving the repo, since the upstream component supports Wiim players since June 29, 2023. This won't affect anyone current using this repo in HACS, but you should consider switching to the upstream linkplay component.