diff --git a/homeassistant/package_constraints.txt b/homeassistant/package_constraints.txt index d820f5e715b1..1818385c0e21 100644 --- a/homeassistant/package_constraints.txt +++ b/homeassistant/package_constraints.txt @@ -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 diff --git a/requirements.txt b/requirements.txt index ece1877ea75d..cbe339fd8357 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 diff --git a/setup.py b/setup.py index d5d133d4a3a9..c9acb4d82d79 100755 --- a/setup.py +++ b/setup.py @@ -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", ] diff --git a/tests/components/mqtt/test_climate.py b/tests/components/mqtt/test_climate.py index 4d049753f431..0a9c1dc61040 100644 --- a/tests/components/mqtt/test_climate.py +++ b/tests/components/mqtt/test_climate.py @@ -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"