Skip to content

Commit

Permalink
have a shot at fixing the warning that gives different deprecation da…
Browse files Browse the repository at this point in the history
…tes.
  • Loading branch information
gluap committed Nov 14, 2024
1 parent 4a844ea commit 314452f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions custom_components/duofern/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,8 @@ async def async_unload_entry(hass: HomeAssistant, config_entry: ConfigEntry) ->
unsetupDevice(hass, duofernId)

for component in DUOFERN_COMPONENTS:
hass.async_create_task(
hass.config_entries.async_forward_entry_unload(config_entry, component)
)
await hass.config_entries.async_forward_entry_unload(config_entry, component)



newstick = DuofernStickThreaded(serial_port=stick.port, system_code=stick.system_code,
Expand Down Expand Up @@ -132,9 +131,7 @@ def setup(hass: HomeAssistant, config: ConfigType) -> bool:
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
"""Setup the Duofern Config entries (entities, devices, etc...)"""
for component in DUOFERN_COMPONENTS:
hass.async_create_task(
hass.config_entries.async_forward_entry_setup(entry, component)
)
await hass.config_entries.async_forward_entry_setups(entry, component)

return True

Expand Down
2 changes: 1 addition & 1 deletion custom_components/duofern/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
"issue_tracker": "https://github.com/gluap/pyduofern-hacs/issues" ,
"codeowners": ["@gluap"],
"requirements": ["pyduofern==0.36.2"],
"version": "0.5.16"
"version": "0.5.17"
}

0 comments on commit 314452f

Please sign in to comment.