1
0
mirror of https://github.com/home-assistant/core.git synced 2026-07-11 08:39:02 +01:00

Bump yoto-api to 3.1.5 (#172753)

This commit is contained in:
Paul Bottein
2026-06-01 17:38:57 +02:00
committed by Franck Nijhof
parent 7950998083
commit 06b2ec22f0
3 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -10,5 +10,5 @@
"iot_class": "cloud_push",
"loggers": ["yoto_api"],
"quality_scale": "bronze",
"requirements": ["yoto-api==3.1.3"]
"requirements": ["yoto-api==3.1.5"]
}
@@ -80,9 +80,10 @@ class YotoMediaPlayer(YotoEntity, MediaPlayerEntity):
@property
def state(self) -> MediaPlayerState:
"""Return the playback state."""
return PLAYBACK_STATE_MAP.get(
self.player.last_event.playback_status, MediaPlayerState.IDLE
)
status = self.player.last_event.playback_status
if status is None:
return MediaPlayerState.IDLE
return PLAYBACK_STATE_MAP.get(status, MediaPlayerState.IDLE)
@property
def volume_level(self) -> float | None:
+1 -1
View File
@@ -3415,7 +3415,7 @@ yeelightsunflower==0.0.10
yolink-api==0.6.5
# homeassistant.components.yoto
yoto-api==3.1.3
yoto-api==3.1.5
# homeassistant.components.youless
youless-api==2.2.0