mirror of
https://github.com/home-assistant/core.git
synced 2025-11-14 21:40:16 +00:00
Fix Z-WaveJS inclusion in the background (#138717)
* Fix Z-WaveJS inclusion in the background * improve async handling * just return the `requested_grant` to the driver * handle controller busy state
This commit is contained in:
@@ -5284,6 +5284,20 @@ async def test_subscribe_s2_inclusion(
|
||||
assert msg["success"]
|
||||
assert msg["result"] is None
|
||||
|
||||
# Test receiving requested grant event
|
||||
event = Event(
|
||||
type="grant security classes",
|
||||
data={
|
||||
"source": "controller",
|
||||
"event": "grant security classes",
|
||||
"requested": {
|
||||
"securityClasses": [SecurityClass.S2_UNAUTHENTICATED],
|
||||
"clientSideAuth": False,
|
||||
},
|
||||
},
|
||||
)
|
||||
client.driver.receive_event(event)
|
||||
|
||||
# Test receiving DSK request event
|
||||
event = Event(
|
||||
type="validate dsk and enter pin",
|
||||
|
||||
Reference in New Issue
Block a user