enkama / hass-variables

Home Assistant variables component
90 stars 12 forks source link

RuntimeWarning: coroutine 'ConfigEntries.async_reload' was never awaited #65

Closed Snuffy2 closed 1 year ago

Snuffy2 commented 1 year ago

2023-06-17 21:55:32.981 WARNING (MainThread) [py.warnings] /config/custom_components/variable/init.py:224: RuntimeWarning: coroutine 'ConfigEntries.async_reload' was never awaited hass.config_entries.async_reload(entry_id)

skynet01 commented 1 year ago

Happens to me as well

enkama commented 1 year ago

Just change hass.config_entries.async_reload(entry_id) to await hass.config_entries.async_reload(entry_id) in 224 or nah? Error doesnt happen for me so I cant check it.

Snuffy2 commented 1 year ago

Just change hass.config_entries.async_reload(entry_id) to await hass.config_entries.async_reload(entry_id) in 224 or nah? Error doesnt happen for me so I cant check it.

No. That triggers a different error about awaiting itself or something like that. I've tried a couple of things, but haven't found the right combo to make HA happy.