Skip to content

Commit

Permalink
Fix warning async_forward_entry_setup
Browse files Browse the repository at this point in the history
Fix warning async_forward_entry_setup, which is deprecated and will stop working in Home Assistant 2025.6
  • Loading branch information
hkrogh committed Nov 20, 2024
1 parent 3df58e1 commit 77f931d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions custom_components/blueiris/managers/home_assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,7 @@ async def async_init(self, entry: ConfigEntry):
_LOGGER.error(f"Failed to async_init, error: {ex}, line: {line_number}")

async def _async_init(self):
load = self._hass.config_entries.async_forward_entry_setup

for domain in SIGNALS:
await load(self._config_manager.config_entry, domain)
await self._hass.config_entries.async_forward_entry_setups(self._config_manager.config_entry, list(SIGNALS.keys()))

self._is_initialized = True

Expand Down

0 comments on commit 77f931d

Please sign in to comment.