mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-16 05:36:29 +00:00
Add issues field to create full backup suggestion (#5024)
This commit is contained in:
parent
18d9d32bca
commit
f18213361a
@ -2,7 +2,7 @@
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from ...coresys import CoreSys
|
from ...coresys import CoreSys
|
||||||
from ..const import ContextType, SuggestionType
|
from ..const import ContextType, IssueType, SuggestionType
|
||||||
from .base import FixupBase
|
from .base import FixupBase
|
||||||
|
|
||||||
_LOGGER: logging.Logger = logging.getLogger(__name__)
|
_LOGGER: logging.Logger = logging.getLogger(__name__)
|
||||||
@ -21,6 +21,11 @@ class FixupSystemCreateFullBackup(FixupBase):
|
|||||||
_LOGGER.info("Creating a full backup")
|
_LOGGER.info("Creating a full backup")
|
||||||
await self.sys_backups.do_backup_full()
|
await self.sys_backups.do_backup_full()
|
||||||
|
|
||||||
|
@property
|
||||||
|
def issues(self) -> list[IssueType]:
|
||||||
|
"""Return a IssueType enum list."""
|
||||||
|
return [IssueType.NO_CURRENT_BACKUP]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def suggestion(self) -> SuggestionType:
|
def suggestion(self) -> SuggestionType:
|
||||||
"""Return a SuggestionType enum."""
|
"""Return a SuggestionType enum."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user