Filter out duplicate app names from vizio's source list (#33051)

* filter out additional app config names from pyvizios app list

* add test

* change where filtering app list occurs

* fix test

* fix mistake in change

* hopefully final test fix

* fix test scenario that unknowingly broke with test change
This commit is contained in:
Raman Gupta authored and GitHub committed 2020-03-22 17:34:00 +01:00
1 parent 912cda4e6f
commit ca3a22b5a3
3 files changed
+13 -7

No files matched your search

+1 -2
View File
@@ -70,10 +70,9 @@ INPUT_LIST = ["HDMI", "USB", "Bluetooth", "AUX"]
CURRENT_APP = "Hulu"
APP_LIST = ["Hulu", "Netflix"]
INPUT_LIST_WITH_APPS = INPUT_LIST + ["CAST"]
CUSTOM_APP_NAME = "APP3"
CUSTOM_CONFIG = {CONF_APP_ID: "test", CONF_MESSAGE: None, CONF_NAME_SPACE: 10}
ADDITIONAL_APP_CONFIG = {
"name": CUSTOM_APP_NAME,
"name": CURRENT_APP,
CONF_CONFIG: CUSTOM_CONFIG,
}