home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.77k stars 30.88k forks source link

Squeezebox player: platform not found #95965

Closed tomlut closed 1 year ago

tomlut commented 1 year ago

The problem

After updating to 2023.7.0 I can no longer connect to my Raspiaudio Muse Luxe speaker via the SqueezePlayer integration. The following error is logged:

Logger: homeassistant.setup
Source: setup.py:379
First occurred: 16:32:28 (1 occurrences)
Last logged: 16:32:28 

Unable to prepare setup for platform slimproto.media_player: Platform not found (Exception importing homeassistant.components.slimproto.media_player).

The device web page is still reachable via a web browser.

What version of Home Assistant Core has the issue?

core-2023.7.0

What was the last working version of Home Assistant Core?

core-2023.6.3

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Squeezebox (Logitech Media Server)

Link to integration documentation on our website

https://www.home-assistant.io/integrations/squeezebox/

Diagnostics information

No response

Example YAML snippet

Set up via UI.

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 year ago

Hey there @rajlaud, mind taking a look at this issue as it has been labeled with an integration (squeezebox) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `squeezebox` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign squeezebox` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


squeezebox documentation squeezebox source (message by IssueLinks)

tomlut commented 1 year ago

Rolling back to core-2023.6.3 restores the integration.

frenck commented 1 year ago

Is there more information in the logs? I feel like this is a resulting message, but not the root/origin of the issue.

tomlut commented 1 year ago

No that was it. No diagnostic info available either.

Everything else looked fine except for some smart plugs and lights that have died while I've been away from home for a year.

I'll enable debug logging and give it anther go.

tomlut commented 1 year ago

Does this help?

Logger: homeassistant.loader
Source: components/slimproto/media_player.py:30
First occurred: 17:27:35 (1 occurrences)
Last logged: 17:27:35

Unexpected exception importing platform homeassistant.components.slimproto.media_player
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 833, in get_platform
    cache[full_name] = self._import_platform(platform_name)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/loader.py", line 850, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/src/homeassistant/homeassistant/components/slimproto/media_player.py", line 30, in <module>
    PlayerState.IDLE: MediaPlayerState.IDLE,
    ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/enum.py", line 783, in __getattr__
    raise AttributeError(name) from None
AttributeError: IDLE
frenck commented 1 year ago

Awesome, thanks 👍

rajlaud commented 1 year ago

@home-assistant unassign slimproto

balloob commented 1 year ago

Looks like the PlayerState.IDLE was removed from aioslimproto.

home-assistant[bot] commented 1 year ago

Hey there @marcelveldt, mind taking a look at this issue as it has been labeled with an integration (slimproto) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `slimproto` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign slimproto` Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


slimproto documentation slimproto source (message by IssueLinks)