mirror of
https://github.com/home-assistant/core.git
synced 2025-08-14 01:55:18 +02:00
Revert "Use language independent variable to read MPC-HC state" (#60993)
This commit is contained in:
@@ -106,13 +106,13 @@ class MpcHcDevice(MediaPlayerEntity):
|
||||
@property
|
||||
def state(self):
|
||||
"""Return the state of the device."""
|
||||
state = self._player_variables.get("state", None)
|
||||
state = self._player_variables.get("statestring", None)
|
||||
|
||||
if state is None:
|
||||
return STATE_OFF
|
||||
if state == "2":
|
||||
if state == "playing":
|
||||
return STATE_PLAYING
|
||||
if state == "1":
|
||||
if state == "paused":
|
||||
return STATE_PAUSED
|
||||
|
||||
return STATE_IDLE
|
||||
|
Reference in New Issue
Block a user