Skip to content

Commit

Permalink
Fix ST_CHUP / ST_CHDOWN Keys
Browse files Browse the repository at this point in the history
  • Loading branch information
jaruba authored Mar 20, 2020
1 parent 9109bc5 commit 9c37012
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/samsungtv_tizen/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,12 +399,12 @@ def _smartthings_keys(self, source_key):
smartthings.send_command(self, source_key.replace("ST_", ""), "selectsource")
elif source_key == "ST_TV":
smartthings.send_command(self, "digitalTv", "selectsource")
elif source_key.startswith("ST_CH"):
smartthings.send_command(self, source_key.replace("ST_CH", ""), "selectchannel")
elif source_key == "ST_CHUP":
smartthings.send_command(self, "up", "stepchannel")
elif source_key == "ST_CHDOWN":
smartthings.send_command(self, "down", "stepchannel")
elif source_key.startswith("ST_CH"):
smartthings.send_command(self, source_key.replace("ST_CH", ""), "selectchannel")

@util.Throttle(MIN_TIME_BETWEEN_SCANS, MIN_TIME_BETWEEN_FORCED_SCANS)
def update(self):
Expand Down

0 comments on commit 9c37012

Please sign in to comment.