Skip to content

Commit

Permalink
Fix unintended event errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Xyaren committed Jun 30, 2023
1 parent 86413ae commit eb24de0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/magentatv/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ async def _async_on_event(self, changes):
self._state_machine.on_event_eit_changed(
json.loads(changes["STB_EitChanged"])
)
elif "messageBody" in changes and "X-pairingCheck" in changes["messageBody"]:
return # ignore event
else:
raise NotImplementedError()

Expand Down

0 comments on commit eb24de0

Please sign in to comment.