Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update für Home Assistant 2025.1.x: async_forward_entry_setup entfernt #451

Merged
merged 1 commit into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
}
Loading