Update vizio component to prepare for config flow and zeroconf support (#30522)
* move constants, move schema validation to init, prepare for zeroconf/config flow * update requirements_all and make setup validation more pythonic * mistake in refactor * un-revert change from previous PR * rename schema var * update .coveragerc, move validate_auth to __init__, only attempt to get ESN if device setup is validated * reinstate validate_setup but change logic to use new connection test function * fix schema validation * simplify string empty check logic * missed commit
This commit is contained in:
1 parent
e22742550c
commit
7d58de1bda
6 files changed
+84
-47
No files matched your search
@@ -0,0 +1,14 @@
|
||||
"""Constants used by vizio component."""
|
||||
|
||||
CONF_SUPPRESS_WARNING = "suppress_warning"
|
||||
CONF_VOLUME_STEP = "volume_step"
|
||||
|
||||
DEFAULT_NAME = "Vizio SmartCast"
|
||||
DEFAULT_VOLUME_STEP = 1
|
||||
DEFAULT_DEVICE_CLASS = "tv"
|
||||
DEVICE_ID = "pyvizio"
|
||||
DEVICE_NAME = "Python Vizio"
|
||||
|
||||
DOMAIN = "vizio"
|
||||
|
||||
ICON = {"tv": "mdi:television", "soundbar": "mdi:speaker"}
|
||||
Reference in new issue
Block a user