jeroenterheerdt / HADailySensor

Sensor for Home Assistant that gets reset at midnight
MIT License
76 stars 19 forks source link

Detected code that calls async_forward_entry_setup for integration daily #66

Closed lennon101 closed 1 month ago

lennon101 commented 2 months ago

Just saw this log appear in the HA log. Couldn't see the issue raised in github repo so adding here for prosperity. See the log below for more details.

System Information

version core-2024.9.1
installation_type Home Assistant Container
dev false
hassio false
docker true
user root
virtualenv false
python_version 3.12.4
os_name Linux
os_version 6.8.0-44-generic
arch x86_64
timezone Australia/Brisbane
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok HACS Data | ok GitHub API Calls Remaining | 5000 Installed Version | 2.0.1 Stage | running Available Repositories | 1411 Downloaded Repositories | 53
Dashboards dashboards | 10 -- | -- resources | 38 views | 41 mode | storage
Recorder oldest_recorder_run | September 5, 2024 at 10:23 -- | -- current_recorder_run | September 16, 2024 at 11:56 estimated_db_size | 23965.99 MiB database_engine | postgresql database_version | 16.4

HA log

2024-09-17 10:58:16.815 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration daily with title: Daily Max Feels Like Temp and entry_id: 44ee67a327b0626efe9ca02682075941, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue.
Stack (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 223, in <module>
    sys.exit(main())
  File "/usr/src/homeassistant/homeassistant/__main__.py", line 209, in main
    exit_code = runner.run(runtime_conf)
  File "/usr/src/homeassistant/homeassistant/runner.py", line 189, in run
    return loop.run_until_complete(setup_and_run_hass(runtime_config))
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once
    handle._run()
  File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run
    self._context.run(self._callback, *self._args)
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2184, in async_forward_entry_setup
    _report_non_awaited_platform_forwards(entry, "async_forward_entry_setup")
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 1201, in _report_non_awaited_platform_forwards
    report(
  File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 151, in report
    _LOGGER.warning(msg, stack_info=True)
jeroenterheerdt commented 1 month ago

duplicate of #62