Standardize Vizio update service schema (#38636)
* update voluptuous schema to match standards and to handle data transformations * improve test
This commit is contained in:
1 parent
50cd6be18d
commit
0d5e279509
3 files changed
+18
-6
No files matched your search
@@ -387,12 +387,26 @@ async def test_services(
|
||||
SERVICE_SELECT_SOUND_MODE,
|
||||
{ATTR_SOUND_MODE: "Music"},
|
||||
)
|
||||
# Test that the update_setting service does config validation/transformation correctly
|
||||
await _test_service(
|
||||
hass,
|
||||
DOMAIN,
|
||||
"set_setting",
|
||||
SERVICE_UPDATE_SETTING,
|
||||
{"setting_type": "Audio", "setting_name": "AV Delay", "new_value": "0"},
|
||||
"audio",
|
||||
"av_delay",
|
||||
0,
|
||||
)
|
||||
await _test_service(
|
||||
hass,
|
||||
DOMAIN,
|
||||
"set_setting",
|
||||
SERVICE_UPDATE_SETTING,
|
||||
{"setting_type": "Audio", "setting_name": "EQ", "new_value": "Music"},
|
||||
"audio",
|
||||
"eq",
|
||||
"Music",
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user