diff --git a/tests/test_gateway.py b/tests/test_gateway.py index fc2d8da7..6c0cbc20 100644 --- a/tests/test_gateway.py +++ b/tests/test_gateway.py @@ -409,7 +409,10 @@ async def test_gateway_initialize_bellows_thread( ) as mock_new: zha_gw = Gateway(zha_data) await zha_gw.async_initialize() - assert mock_new.mock_calls[-1].kwargs["config"][CONF_USE_THREAD] is thread_state + assert ( + mock_new.mock_calls[-1].kwargs["config"].get(CONF_USE_THREAD, True) + is thread_state + ) await zha_gw.shutdown() diff --git a/zha/application/gateway.py b/zha/application/gateway.py index 72b5c9db..5e4fadb7 100644 --- a/zha/application/gateway.py +++ b/zha/application/gateway.py @@ -210,7 +210,7 @@ def get_application_controller_data(self) -> tuple[ControllerApplication, dict]: ): app_config[CONF_USE_THREAD] = False - return radio_type.controller, radio_type.controller.SCHEMA(app_config) + return radio_type.controller, app_config @classmethod async def async_from_config(cls, config: ZHAData) -> Self: