-
-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Load/unload gpslogger entities correctly between component and platform #20448
Load/unload gpslogger entities correctly between component and platform #20448
Conversation
Will github correctly detect the module move if that is done separately in one commit, and further changes applied after in another commit? |
fcbc553
to
e367232
Compare
Looks like yes it will, just force pushed with it broken up that way. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
e367232
to
b84eb33
Compare
Rebasing with |
return True | ||
|
||
|
||
async def async_unload_entry(hass, entry): | ||
"""Unload a config entry.""" | ||
hass.components.webhook.async_unregister(entry.data[CONF_WEBHOOK_ID]) | ||
|
||
hass.async_create_task( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can await the coroutine directly. We don't need to create a task.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Can be merged when build passes. |
…rm (home-assistant#20448) * Embed device_tracker in gpslogger * Load/unload gpslogger entities correctly between component and platform * Await the coroutine directly
Description:
Relates to #20237.
This came out of a couple of discussions with @MartinHjelmare #20083 (comment) and #20079 (comment).
Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#<home-assistant.io PR number goes here>
Checklist:
tox
. Your PR cannot be merged unless tests passIf the code does not interact with devices: