You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting the following warnings when trying to use the historical sensor example code from delorian. Not sure how to fix this one. Tried just replacing async_forward_entry_setup with async_forward_entry_setups as the warning suggests but that just caused an exception. Any help would be much appreciated. Otherwise the historical sensor is working great for my application. Great job. Thanks.
2024-10-04 10:49:49.342 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'apsmeter' calls async_forward_entry_setup for integration, apsmeter with title: apsmeter and entry_id: 01J92AJ6SZTH89QBGS4G3K50ZF, which is deprecated and will stop working in Home Assistant 2025.6, await async_forward_entry_setups instead at custom_components/apsmeter/__init__.py, line 50: hass.async_create_task(, please create a bug report at https://github.com/ldotlopez/ha-historical-sensor/issues
Code that causes the warning in delorian init.py
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
hass.data[DOMAIN] = hass.data.get(DOMAIN, {})
hass.data[DOMAIN][entry.entry_id] = get_device_info()
for platform in PLATFORMS:
if entry.options.get(platform, True):
_LOGGER.debug(f"setting up {platform}")
hass.async_create_task(
hass.config_entries.async_forward_entry_setup(entry, platform)
)
return True
The text was updated successfully, but these errors were encountered:
Getting the following warnings when trying to use the historical sensor example code from delorian. Not sure how to fix this one. Tried just replacing async_forward_entry_setup with async_forward_entry_setups as the warning suggests but that just caused an exception. Any help would be much appreciated. Otherwise the historical sensor is working great for my application. Great job. Thanks.
Code that causes the warning in delorian init.py
The text was updated successfully, but these errors were encountered: