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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View file

@ -28,7 +28,7 @@ requests==2.25.0
ruamel.yaml==0.15.100
sqlalchemy==1.3.20
voluptuous-serialize==2.4.0
voluptuous==0.12.0
voluptuous==0.12.1
yarl==1.4.2
zeroconf==0.28.6

View file

@ -19,6 +19,6 @@ pytz>=2020.1
pyyaml==5.3.1
requests==2.25.0
ruamel.yaml==0.15.100
voluptuous==0.12.0
voluptuous==0.12.1
voluptuous-serialize==2.4.0
yarl==1.4.2

View file

@ -51,7 +51,7 @@ REQUIRES = [
"pyyaml==5.3.1",
"requests==2.25.0",
"ruamel.yaml==0.15.100",
"voluptuous==0.12.0",
"voluptuous==0.12.1",
"voluptuous-serialize==2.4.0",
"yarl==1.4.2",
]

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"