StartTime icon indicating copy to clipboard operation
StartTime copied to clipboard

Deprecated async_forward_entry_setup call

Open tjorim opened this issue 1 year ago • 1 comments

This will stop working in HA 2025.6

Logger: homeassistant.helpers.frame
Source: helpers/frame.py:184
First occurred: 11:45:31 (11 occurrences)
Last logged: 11:46:21

Detected that custom integration 'start_time' calls async_forward_entry_setup for integration, start_time with title: Start Time and entry_id: 4042dae57affa7b941c965a433878efb, which is deprecated and will stop working in Home Assistant 2025.6, await async_forward_entry_setups instead at custom_components/start_time/__init__.py, line 18: hass.async_create_task(hass.config_entries.async_forward_entry_setup(, please create a bug report at https://github.com/AlexxIT/StartTime/issues

tjorim avatar Jul 12 '24 18:07 tjorim

FYI,

Opened a PR for this issue here: fix deprecated async_forward_entry_setup call

qosmio avatar Jul 23 '24 01:07 qosmio

I have this issue now after upgrading to HA2025.6. Could you please accept the PR if that works?

victorclaessen avatar Jun 12 '25 10:06 victorclaessen

2025.6.1

Log details (WARNING) This error originated from a custom integration. Logger: custom_components.start_time.sensor Source: custom_components/start_time/sensor.py:35 integration: Start Time (documentation, issues) First occurred: 15:16:30 (1 occurrence) Last logged: 15:16:30

update error Traceback (most recent call last): File "/config/custom_components/start_time/sensor.py", line 35, in monkey_info self.internal_update(args[0]) ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "/config/custom_components/start_time/sensor.py", line 44, in internal_update setup_time: dict = self.hass.data.get("setup_time") ^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute data

Blacksli avatar Jun 16 '25 11:06 Blacksli

same issue here, since last update to Installationsmethode Home Assistant OS Core 2025.6.1 Supervisor 2025.05.5 Operating System 15.2 Frontend 20250531.3

WBrown15 avatar Jun 17 '25 11:06 WBrown15

Регистратор: homeassistant.config_entries Источник: config_entries.py:749 Зафиксировано первый раз: 18 июня 2025 г. в 23:52:02 (1 случай) Зафиксировано последний раз: 18 июня 2025 г. в 23:52:02

Error setting up entry Start Time for start_time Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 749, in __async_setup_with_context result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/start_time/init.py", line 18, in async_setup_entry hass.async_create_task(hass.config_entries.async_forward_entry_setup( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'ConfigEntries' object has no attribute 'async_forward_entry_setup'. Did you mean: 'async_forward_entry_setups'?

0kinawa avatar Jun 19 '25 05:06 0kinawa

+++

beliy1985 avatar Jun 19 '25 09:06 beliy1985

@AlexxIT what about the PR(s) fixing this?

bcutter avatar Jul 27 '25 14:07 bcutter