mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
Fix media_player power state (#64136)
This commit is contained in:
parent
f4b5b56427
commit
946de01b94
@ -175,7 +175,7 @@ class LookinMedia(LookinPowerEntity, MediaPlayerEntity):
|
|||||||
state = status[0]
|
state = status[0]
|
||||||
mute = status[2]
|
mute = status[2]
|
||||||
|
|
||||||
self._attr_state = STATE_STANDBY if state == "1" else STATE_ON
|
self._attr_state = STATE_ON if state == "1" else STATE_STANDBY
|
||||||
self._attr_is_volume_muted = mute == "0"
|
self._attr_is_volume_muted = mute == "0"
|
||||||
|
|
||||||
def _async_push_update(self, event: UDPEvent) -> None:
|
def _async_push_update(self, event: UDPEvent) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user