Add support for Vizio sound mode (#33200)

* add sound mode support for devices that support it

* make setting and unsetting flag better

* move eq and audio settings into constants

* fix missed statement to use constant instead of hardcoded string

* further fixes based on review

* bump pyvizio version to include newly identified app
This commit is contained in:
Raman Gupta 2020-04-02 22:48:19 -04:00 committed by GitHub
parent f25321e010
commit 081b822d25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 79 additions and 11 deletions

View file

@ -63,6 +63,9 @@ SUPPORTED_COMMANDS = {
),
}
VIZIO_SOUND_MODE = "eq"
VIZIO_AUDIO_SETTINGS = "audio"
# Since Vizio component relies on device class, this dict will ensure that changes to
# the values of DEVICE_CLASS_SPEAKER or DEVICE_CLASS_TV don't require changes to pyvizio.
VIZIO_DEVICE_CLASSES = {