Skip to content

Commit

Permalink
Add HA_CUSTOMIZABLE_COMMANDS constant (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffLIrion committed Feb 2, 2022
1 parent 26a4d74 commit 4ecfe94
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions androidtv/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ class DeviceEnum(IntEnum):
CUSTOM_TURN_ON,
}

#: The subset of `CUSTOMIZABLE_COMMANDS` that is potentially used in the ``update()`` method
HA_CUSTOMIZABLE_COMMANDS = (
CUSTOM_CURRENT_APP_MEDIA_SESSION_STATE,
CUSTOM_LAUNCH_APP,
CUSTOM_RUNNING_APPS,
CUSTOM_TURN_OFF,
CUSTOM_TURN_ON,
)

# echo '1' if the previous shell command was successful
CMD_SUCCESS1 = r" && echo -e '1\c'"
Expand Down

0 comments on commit 4ecfe94

Please sign in to comment.