Update vizio app_id state attribute to show app config dict in… (#32727)
* bump pyvizio and update app_id to show app config to aid in HA config generation. squashed from multiple commits to make a rebase on dev easier * bump pyvizio for bug fixes * fix pyvizio version number * only return app_id if app is unknown and explicitly create the dict that's returned * fix tests * fix docstring for app_id
This commit is contained in:
1 parent
4a0a56ebdc
commit
d5f4dfdd6b
7 files changed
+101
-47
No files matched your search
@@ -68,6 +68,7 @@ CURRENT_INPUT = "HDMI"
|
||||
INPUT_LIST = ["HDMI", "USB", "Bluetooth", "AUX"]
|
||||
|
||||
CURRENT_APP = "Hulu"
|
||||
CURRENT_APP_CONFIG = {CONF_APP_ID: "3", CONF_NAME_SPACE: 4, CONF_MESSAGE: None}
|
||||
APP_LIST = ["Hulu", "Netflix"]
|
||||
INPUT_LIST_WITH_APPS = INPUT_LIST + ["CAST"]
|
||||
CUSTOM_CONFIG = {CONF_APP_ID: "test", CONF_MESSAGE: None, CONF_NAME_SPACE: 10}
|
||||
@@ -75,6 +76,11 @@ ADDITIONAL_APP_CONFIG = {
|
||||
"name": CURRENT_APP,
|
||||
CONF_CONFIG: CUSTOM_CONFIG,
|
||||
}
|
||||
UNKNOWN_APP_CONFIG = {
|
||||
"APP_ID": "UNKNOWN",
|
||||
"NAME_SPACE": 10,
|
||||
"MESSAGE": None,
|
||||
}
|
||||
|
||||
ENTITY_ID = f"{MP_DOMAIN}.{slugify(NAME)}"
|
||||
|
||||
|
||||
Reference in new issue
Block a user