1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-27 20:23:58 +01:00

Adjust backup type of Update entity (#68553)

This commit is contained in:
Franck Nijhof
2022-03-23 11:20:04 +01:00
committed by GitHub
parent 1c57e65cea
commit 44d3a7e459
6 changed files with 14 additions and 42 deletions

View File

@@ -6,6 +6,7 @@ Call init before using it in your tests to ensure clean test data.
from __future__ import annotations
import logging
from typing import Any
from homeassistant.components.update import UpdateEntity, UpdateEntityFeature
@@ -49,11 +50,7 @@ class MockUpdateEntity(MockEntity, UpdateEntity):
"""Title of the software."""
return self._handle("title")
def install(
self,
version: str | None = None,
backup: bool | None = None,
) -> None:
def install(self, version: str | None, backup: bool, **kwargs: Any) -> None:
"""Install an update."""
if backup:
_LOGGER.info("Creating backup before installing update")