Skip to content

Commit

Permalink
Add check for Android in services
Browse files Browse the repository at this point in the history
As mentioned here -> #36 (comment)
  • Loading branch information
gerard33 authored Jan 10, 2021
1 parent 9a8cc3a commit e95d421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/braviatv_psk/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,13 +590,13 @@ def play_media(self, media_type, media_id, **kwargs):

def send_command(self, command_id):
"""Send arbitrary command to TV via HA service."""
if self._state == STATE_OFF:
if self._state == STATE_OFF and not self._android:
return
self._braviarc.send_command(command_id)

def open_app(self, uri):
"""Open app with given uri."""
if self._state == STATE_OFF:
if self._state == STATE_OFF and not self._android:
return
self._braviarc.open_app(uri)

Expand Down

0 comments on commit e95d421

Please sign in to comment.