Bump zwave_js dependency to 0.24.0 ()

* Bump zwave_js dependency to 0.24.0

* fix bug in schema

* fix test
pull/49505/head
Raman Gupta 2021-04-20 17:44:26 -04:00 committed by GitHub
parent 208a17d0dc
commit cf16e651cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 12 deletions
homeassistant/components/zwave_js
tests/components/zwave_js

View File

@ -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"

View File

@ -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)
},
),
},

View File

@ -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

View File

@ -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

View File

@ -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,