diff --git a/custom_components/isc/__init__.py b/custom_components/isc/__init__.py index 6f33370..7c06f47 100644 --- a/custom_components/isc/__init__.py +++ b/custom_components/isc/__init__.py @@ -22,10 +22,7 @@ async def async_setup_entry(hass, config_entry): ) config_entry.add_update_listener(update_listener) # Add sensor - hass.async_create_background_task( - hass.config_entries.async_forward_entry_setup(config_entry, PLATFORM), - name=DOMAIN - ) + await hass.config_entries.async_forward_entry_setup(config_entry, PLATFORM) return True @@ -44,7 +41,4 @@ async def update_listener(hass, entry): """Update listener.""" entry.data = entry.options await hass.config_entries.async_forward_entry_unload(entry, PLATFORM) - hass.async_create_background_task( - hass.config_entries.async_forward_entry_setup(entry, PLATFORM), - name=DOMAIN - ) + await hass.config_entries.async_forward_entry_setups(entry, PLATFORM) diff --git a/custom_components/isc/manifest.json b/custom_components/isc/manifest.json index e68281b..8ead7e1 100644 --- a/custom_components/isc/manifest.json +++ b/custom_components/isc/manifest.json @@ -3,7 +3,7 @@ "name": "ics", "documentation": "https://github.com/KoljaWindeler/ics/blob/master/README.md", "config_flow": true, - "version": "20240420.01", + "version": "20241229.01", "requirements": [ "recurring-ical-events", "icalendar>=4.0.4",