Skip to content

Commit

Permalink
Add support for SmartThings key "PC" (FR #274)
Browse files Browse the repository at this point in the history
  • Loading branch information
ollo69 committed Jan 5, 2024
1 parent 270c050 commit 72cca77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/samsungtv_smart/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ def _get_source(self):
self._source = found_source
return self._source

async def _smartthings_keys(self, source_key):
async def _smartthings_keys(self, source_key: str):
"""Manage the SmartThings key commands."""
if not self._st:
_LOGGER.error(
Expand All @@ -664,7 +664,7 @@ async def _smartthings_keys(self, source_key):
)
return False

if source_key.startswith("ST_HDMI"):
if source_key.startswith("ST_HDMI") or source_key == "ST_PC":
await self._st.async_select_source(source_key.replace("ST_", ""))
elif source_key == "ST_TV":
await self._st.async_select_source("digitalTv")
Expand Down

0 comments on commit 72cca77

Please sign in to comment.