Bump voluptuous to 0.12.1 (#44002)

* Bump voluptuous to 0.12.1

* Adjust MQTT climate test to new error msg
This commit is contained in:
Philip Allgaier
2020-12-07 02:49:36 +01:00
committed by GitHub
parent 30f73a4962
commit 18736dbebf
4 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -133,9 +133,9 @@ async def test_set_operation_bad_attr_and_state(hass, mqtt_mock, caplog):
assert state.state == "off"
with pytest.raises(vol.Invalid) as excinfo:
await common.async_set_hvac_mode(hass, None, ENTITY_CLIMATE)
assert ("value is not allowed for dictionary value @ data['hvac_mode']") in str(
excinfo.value
)
assert (
"value must be one of ['auto', 'cool', 'dry', 'fan_only', 'heat', 'heat_cool', 'off'] for dictionary value @ data['hvac_mode']"
) in str(excinfo.value)
state = hass.states.get(ENTITY_CLIMATE)
assert state.state == "off"