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:
Petar Petrov
2025-02-18 16:17:13 +02:00
committed by GitHub
parent 22c634e626
commit a003f89a5e
2 changed files with 32 additions and 4 deletions

View File

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