Release Notes - Version 1.1.0
Release Notes
Version 1.1.0
Changes
-
Deprecated call removal
- Replaced
async_forward_entry_setup(config_entry, "sensor")with the newasync_forward_entry_setups(config_entry, ["sensor"])in__init__.py. - Removed any usage of
hass.async_create_task()when forwarding the config entry, ensuring weawaitthe calls directly.
- Replaced
-
Imports & Type Hints
- Added missing imports for
HomeAssistantandConfigEntryfrom the Home Assistant core modules to avoidNameErrorexceptions. - Updated function signatures with
async_add_entities: AddEntitiesCallbackwhere appropriate.
- Added missing imports for
-
Improved Compatibility
- Adjusted the integration to align with Home Assistant’s current async patterns, avoiding warnings related to event loop usage and ensuring future compatibility (especially ahead of HA 2025.x deprecations).
Notes
- This release resolves the warning:
"Detected code that calls async_forward_entry_setup for integration 'arso_potresi' … which is deprecated, await async_forward_entry_setups instead."
- If you have been seeing
NameError: name 'HomeAssistant' is not definedor deprecation logs regarding async setup, these changes should now address them.
Upgrading
- Simply replace the old
arso_potresicustom component folder with the updated version and restart Home Assistant. - No breaking configuration changes are introduced in this release.
Thank you for using ARSO Potresi! If you encounter any further issues or have feature requests, feel free to open a new issue on GitHub.