Bump zwave-js-server-python to 0.35.0 (#66785)

* Bump zwave-js-server-python to 0.35.0

* Remove support for new event type which should go in a separate PR
This commit is contained in:
Raman Gupta 2022-02-18 02:36:27 -05:00 committed by GitHub
parent 703d01e772
commit 82ebb7047f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 447 additions and 429 deletions

View file

@ -196,12 +196,16 @@ async def test_on_node_added_not_ready(
assert len(hass.states.async_all()) == 0
assert not dev_reg.devices
node_state = deepcopy(zp3111_not_ready_state)
node_state["isSecure"] = False
event = Event(
type="node added",
data={
"source": "controller",
"event": "node added",
"node": deepcopy(zp3111_not_ready_state),
"node": node_state,
"result": {},
},
)
client.driver.receive_event(event)
@ -317,12 +321,16 @@ async def test_existing_node_not_replaced_when_not_ready(
assert state.name == "Custom Entity Name"
assert not hass.states.get(motion_entity)
node_state = deepcopy(zp3111_not_ready_state)
node_state["isSecure"] = False
event = Event(
type="node added",
data={
"source": "controller",
"event": "node added",
"node": deepcopy(zp3111_not_ready_state),
"node": node_state,
"result": {},
},
)
client.driver.receive_event(event)
@ -838,9 +846,14 @@ async def test_node_removed(hass, multisensor_6_state, client, integration):
dev_reg = dr.async_get(hass)
node = Node(client, deepcopy(multisensor_6_state))
device_id = f"{client.driver.controller.home_id}-{node.node_id}"
event = {"node": node}
event = {
"source": "controller",
"event": "node added",
"node": node.data,
"result": {},
}
client.driver.controller.emit("node added", event)
client.driver.controller.receive_event(Event("node added", event))
await hass.async_block_till_done()
old_device = dev_reg.async_get_device(identifiers={(DOMAIN, device_id)})
assert old_device.id
@ -907,7 +920,7 @@ async def test_replace_same_node(
"index": 0,
"status": 4,
"ready": False,
"isSecure": "unknown",
"isSecure": False,
"interviewAttempts": 1,
"endpoints": [{"nodeId": node_id, "index": 0, "deviceClass": None}],
"values": [],
@ -922,6 +935,7 @@ async def test_replace_same_node(
"timeoutResponse": 0,
},
},
"result": {},
},
)
@ -1022,7 +1036,7 @@ async def test_replace_different_node(
"index": 0,
"status": 4,
"ready": False,
"isSecure": "unknown",
"isSecure": False,
"interviewAttempts": 1,
"endpoints": [
{"nodeId": multisensor_6.node_id, "index": 0, "deviceClass": None}
@ -1039,6 +1053,7 @@ async def test_replace_different_node(
"timeoutResponse": 0,
},
},
"result": {},
},
)