Skip to content

Commit c23bfb1

Browse files
marcelveldtfrenck
authored andcommitted
Fix state being incorrectly reported in some situations on Music Assistant players (home-assistant#147997)
1 parent a2ffe32 commit c23bfb1

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

homeassistant/components/music_assistant/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"documentation": "https://www.home-assistant.io/integrations/music_assistant",
88
"iot_class": "local_push",
99
"loggers": ["music_assistant"],
10-
"requirements": ["music-assistant-client==1.2.3"],
10+
"requirements": ["music-assistant-client==1.2.4"],
1111
"zeroconf": ["_mass._tcp.local."]
1212
}

homeassistant/components/music_assistant/media_player.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,6 @@ async def async_on_update(self) -> None:
248248
player = self.player
249249
active_queue = self.active_queue
250250
# update generic attributes
251-
if player.powered and active_queue is not None:
252-
self._attr_state = MediaPlayerState(active_queue.state.value)
253251
if player.powered and player.playback_state is not None:
254252
self._attr_state = MediaPlayerState(player.playback_state.value)
255253
else:

requirements_all.txt

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

requirements_test_all.txt

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)