mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Fix state of slimproto players (#96000)
This commit is contained in:
parent
342d07cb92
commit
2b0f2227fd
@ -27,8 +27,10 @@ from homeassistant.util.dt import utcnow
|
|||||||
from .const import DEFAULT_NAME, DOMAIN, PLAYER_EVENT
|
from .const import DEFAULT_NAME, DOMAIN, PLAYER_EVENT
|
||||||
|
|
||||||
STATE_MAPPING = {
|
STATE_MAPPING = {
|
||||||
PlayerState.IDLE: MediaPlayerState.IDLE,
|
PlayerState.STOPPED: MediaPlayerState.IDLE,
|
||||||
PlayerState.PLAYING: MediaPlayerState.PLAYING,
|
PlayerState.PLAYING: MediaPlayerState.PLAYING,
|
||||||
|
PlayerState.BUFFER_READY: MediaPlayerState.PLAYING,
|
||||||
|
PlayerState.BUFFERING: MediaPlayerState.PLAYING,
|
||||||
PlayerState.PAUSED: MediaPlayerState.PAUSED,
|
PlayerState.PAUSED: MediaPlayerState.PAUSED,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user