diff --git a/homeassistant/components/zwave_js/helpers.py b/homeassistant/components/zwave_js/helpers.py index 17515f9aa99..c4eb0396287 100644 --- a/homeassistant/components/zwave_js/helpers.py +++ b/homeassistant/components/zwave_js/helpers.py @@ -95,6 +95,7 @@ def get_value_of_zwave_value(value: ZwaveValue | None) -> Any | None: async def async_enable_statistics(client: ZwaveClient) -> None: """Enable statistics on the driver.""" await client.driver.async_enable_statistics("Home Assistant", HA_VERSION) + await client.driver.async_enable_error_reporting() @callback diff --git a/tests/components/zwave_js/test_api.py b/tests/components/zwave_js/test_api.py index 7ec7d98217b..f4ffa0876d9 100644 --- a/tests/components/zwave_js/test_api.py +++ b/tests/components/zwave_js/test_api.py @@ -3172,10 +3172,12 @@ async def test_data_collection(hass, client, integration, hass_ws_client): result = msg["result"] assert result is None - assert len(client.async_send_command.call_args_list) == 1 - args = client.async_send_command.call_args[0][0] + assert len(client.async_send_command.call_args_list) == 2 + args = client.async_send_command.call_args_list[0][0][0] assert args["command"] == "driver.enable_statistics" assert args["applicationName"] == "Home Assistant" + args = client.async_send_command.call_args_list[1][0][0] + assert args["command"] == "driver.enable_error_reporting" assert entry.data[CONF_DATA_COLLECTION_OPTED_IN] client.async_send_command.reset_mock()