Skip to content
This repository was archived by the owner on Sep 17, 2025. It is now read-only.

Conversation

@dcod3d
Copy link

@dcod3d dcod3d commented Jun 7, 2023

fixes #11

coroutines is deprecated and is removed in Python 3.11

fix for new python version
@beardboy69
Copy link

I've just updated my init_py file with these changes, but I'm getting the below error still;

Logger: homeassistant.components.websocket_api.http.connection
Source: components/homeassistant/init.py:316
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 14:58:13 (1 occurrences)
Last logged: 14:58:13

[140669735220112] Cannot quick reload all YAML configurations because the configuration is not valid: Component error: tesla_gateway - Exception importing custom_components.tesla_gateway
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 205, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1910, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1950, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 887, in admin_handler
await result
File "/usr/src/homeassistant/homeassistant/components/homeassistant/init.py", line 316, in async_handle_reload_all
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Cannot quick reload all YAML configurations because the configuration is not valid: Component error: tesla_gateway - Exception importing custom_components.tesla_gateway

The other error is below;

Logger: homeassistant.components.homeassistant
Source: components/homeassistant/init.py:312
Integration: Home Assistant Core Integration (documentation, issues)
First occurred: 14:58:13 (1 occurrences)
Last logged: 14:58:13

The system cannot reload because the configuration is not valid: Component error: tesla_gateway - Exception importing custom_components.tesla_gateway

Any ideas on how to resolve, as I can't restart HA currently with these errors.

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Asyncio.coroutine problem in HA2023.6.0 beta

2 participants