mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Expose ZWaveJSsupports_long_range
to the frontend (#140489)
* Expose ZWaveJS`supports_long_range` to the frontend * update test
This commit is contained in:
parent
5ea7c113b0
commit
ae8709be21
@ -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,
|
||||
|
@ -23,6 +23,7 @@
|
||||
],
|
||||
"sucNodeId": 1,
|
||||
"supportsTimers": false,
|
||||
"supportsLongRange": true,
|
||||
"isHealNetworkActive": false,
|
||||
"inclusionState": 0,
|
||||
"status": 0
|
||||
|
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user