Adjust backup type of Update entity (#1246)

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
Franck Nijhof 2022-03-23 11:40:32 +01:00 committed by GitHub
parent 1580b118a2
commit 2d7a954db8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,19 +57,13 @@ before starting the update installation process, `SUPPORT_SPECIFIC_VERSION` and
class MyUpdate(UpdateEntity): class MyUpdate(UpdateEntity):
# Implement one of these methods. # Implement one of these methods.
async def async_install( def install(
self, self, version: str | None, backup: bool, **kwargs: Any
version: str | None = None,
backup: bool | None = None,
**kwargs: Any,
) -> None: ) -> None:
"""Install an update.""" """Install an update."""
def install( async def async_install(
self, self, version: str | None, backup: bool, **kwargs: Any
version: str | None = None,
backup: bool | None = None,
**kwargs: Any,
) -> None: ) -> None:
"""Install an update. """Install an update.