Fix media_player power state (#64136)

pull/64148/head
Anton Malko 2022-01-15 02:52:18 +03:00 committed by GitHub
parent f4b5b56427
commit 946de01b94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ class LookinMedia(LookinPowerEntity, MediaPlayerEntity):
state = status[0]
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"
def _async_push_update(self, event: UDPEvent) -> None: