Bump zwave_js dependency to 0.24.0 (#49445)
* Bump zwave_js dependency to 0.24.0 * fix bug in schema * fix testpull/49505/head
parent
208a17d0dc
commit
cf16e651cf
homeassistant/components/zwave_js
tests/components/zwave_js
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
},
|
||||
),
|
||||
},
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue