Expose ZWaveJSsupports_long_range to the frontend (#140489)

* Expose ZWaveJS`supports_long_range` to the frontend

* update test
This commit is contained in:
Petar Petrov 2025-03-14 13:19:49 +02:00 committed by GitHub
parent 5ea7c113b0
commit ae8709be21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 0 deletions

View File

@ -518,6 +518,7 @@ async def websocket_network_status(
"supported_function_types": controller.supported_function_types,
"suc_node_id": controller.suc_node_id,
"supports_timers": controller.supports_timers,
"supports_long_range": controller.supports_long_range,
"is_rebuilding_routes": controller.is_rebuilding_routes,
"inclusion_state": controller.inclusion_state,
"rf_region": controller.rf_region,

View File

@ -23,6 +23,7 @@
],
"sucNodeId": 1,
"supportsTimers": false,
"supportsLongRange": true,
"isHealNetworkActive": false,
"inclusionState": 0,
"status": 0

View File

@ -168,6 +168,7 @@ async def test_network_status(
assert result["client"]["server_version"] == "1.0.0"
assert not result["client"]["server_logging_enabled"]
assert result["controller"]["inclusion_state"] == InclusionState.IDLE
assert result["controller"]["supports_long_range"]
# Try API call with device ID
device = device_registry.async_get_device(