Skip to content

Commit

Permalink
Merge pull request #43 from TwoWheelDev/offState
Browse files Browse the repository at this point in the history
Add handling for fake_sleep_0
  • Loading branch information
sehaas authored Jan 13, 2023
2 parents d4ea84c + 12c2a25 commit 728a13c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/hisense_tv/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ async def _message_received_state(self, msg):
payload="",
)

self._state = STATE_ON
if statetype == "sourceswitch":
# sourceid:
# sourcename:
Expand Down Expand Up @@ -501,8 +502,9 @@ async def _message_received_state(self, msg):
self._channel_num = None
elif statetype == "remote_epg":
pass
elif statetype == "fake_sleep_0":
self._state = STATE_OFF

self._state = STATE_ON
self.async_write_ha_state()

async def _build_library_node(self):
Expand Down

0 comments on commit 728a13c

Please sign in to comment.