Skip to content

Commit

Permalink
Update für Home Assistant 2025.1.x: async_forward_entry_setup entfe…
Browse files Browse the repository at this point in the history
…rnt (#451)
  • Loading branch information
Ludy87 authored Dec 30, 2024
1 parent a6a5f17 commit d778871
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
7 changes: 4 additions & 3 deletions custom_components/xplora_watch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
move_emojis_directory(hass)
await create_service_yaml_file(hass, entry, watches)

for platform in PLATFORMS:
if platform != Platform.NOTIFY:
hass.async_create_task(hass.config_entries.async_forward_entry_setup(entry, platform))
# Create a copy and remove Platform.NOTIFY
PLATFORMS_COPY = [platform for platform in PLATFORMS if platform != Platform.NOTIFY]

await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS_COPY)

hass.async_create_task(
discovery.async_load_platform(
Expand Down
4 changes: 2 additions & 2 deletions custom_components/xplora_watch/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"pyxplora_api==2.12.9",
"backoff>=2",
"requests>=2",
"aiohttp>=3.9",
"aiohttp>=3.11",
"geopy>=2.4",
"dataclasses-json>=0.6",
"pydub",
"marshmallow-enum",
"security>=1.2"
],
"version": "v2.13.11"
"version": "v2.14.0"
}
6 changes: 3 additions & 3 deletions hacs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Xplora\u00ae Watch",
"zip_release": true,
"render_readme": true,
"homeassistant": "2024.8.1",
"hacs": "1.34.0",
"homeassistant": "2025.1.0",
"hacs": "2.0.1",
"filename": "xplora_watch.zip"
}
}

0 comments on commit d778871

Please sign in to comment.