diff --git a/homeassistant/components/zwave_js/manifest.json b/homeassistant/components/zwave_js/manifest.json index 0b780ef7da4..e730b6ae9db 100644 --- a/homeassistant/components/zwave_js/manifest.json +++ b/homeassistant/components/zwave_js/manifest.json @@ -3,7 +3,7 @@ "name": "Z-Wave JS", "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/zwave_js", - "requirements": ["zwave-js-server-python==0.23.1"], + "requirements": ["zwave-js-server-python==0.24.0"], "codeowners": ["@home-assistant/z-wave"], "dependencies": ["http", "websocket_api"], "iot_class": "local_push" diff --git a/homeassistant/components/zwave_js/services.py b/homeassistant/components/zwave_js/services.py index 513abd97318..16bf9c7eb94 100644 --- a/homeassistant/components/zwave_js/services.py +++ b/homeassistant/components/zwave_js/services.py @@ -94,15 +94,13 @@ class ZWaveServices: { vol.Optional(ATTR_DEVICE_ID): vol.All(cv.ensure_list, [cv.string]), vol.Optional(ATTR_ENTITY_ID): cv.entity_ids, - vol.Required(const.ATTR_CONFIG_PARAMETER): vol.Any( - vol.Coerce(int), cv.string - ), + vol.Required(const.ATTR_CONFIG_PARAMETER): vol.Coerce(int), vol.Required(const.ATTR_CONFIG_VALUE): vol.Any( vol.Coerce(int), { - vol.Any(vol.Coerce(int), BITMASK_SCHEMA): vol.Any( - vol.Coerce(int), cv.string - ) + vol.Any( + vol.Coerce(int), BITMASK_SCHEMA, cv.string + ): vol.Any(vol.Coerce(int), cv.string) }, ), }, diff --git a/requirements_all.txt b/requirements_all.txt index 47c2b9cdb9a..644682ad29e 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -2411,4 +2411,4 @@ zigpy==0.33.0 zm-py==0.5.2 # homeassistant.components.zwave_js -zwave-js-server-python==0.23.1 +zwave-js-server-python==0.24.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index fa55cbca222..f90dcf3ff69 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -1278,4 +1278,4 @@ zigpy-znp==0.4.0 zigpy==0.33.0 # homeassistant.components.zwave_js -zwave-js-server-python==0.23.1 +zwave-js-server-python==0.24.0 diff --git a/tests/components/zwave_js/test_api.py b/tests/components/zwave_js/test_api.py index eb198b01f82..ee718020b7a 100644 --- a/tests/components/zwave_js/test_api.py +++ b/tests/components/zwave_js/test_api.py @@ -419,7 +419,7 @@ async def test_update_log_config(hass, client, integration, hass_ws_client): assert len(client.async_send_command.call_args_list) == 1 args = client.async_send_command.call_args[0][0] - assert args["command"] == "update_log_config" + assert args["command"] == "driver.update_log_config" assert args["config"] == {"level": "error"} client.async_send_command.reset_mock() @@ -439,7 +439,7 @@ async def test_update_log_config(hass, client, integration, hass_ws_client): assert len(client.async_send_command.call_args_list) == 1 args = client.async_send_command.call_args[0][0] - assert args["command"] == "update_log_config" + assert args["command"] == "driver.update_log_config" assert args["config"] == {"logToFile": True, "filename": "/test"} client.async_send_command.reset_mock() @@ -465,7 +465,7 @@ async def test_update_log_config(hass, client, integration, hass_ws_client): assert len(client.async_send_command.call_args_list) == 1 args = client.async_send_command.call_args[0][0] - assert args["command"] == "update_log_config" + assert args["command"] == "driver.update_log_config" assert args["config"] == { "level": "error", "logToFile": True,