Add issues field to create full backup suggestion (#5024)
This commit is contained in:
parent
18d9d32bca
commit
f18213361a
|
@ -2,7 +2,7 @@
|
|||
import logging
|
||||
|
||||
from ...coresys import CoreSys
|
||||
from ..const import ContextType, SuggestionType
|
||||
from ..const import ContextType, IssueType, SuggestionType
|
||||
from .base import FixupBase
|
||||
|
||||
_LOGGER: logging.Logger = logging.getLogger(__name__)
|
||||
|
@ -21,6 +21,11 @@ class FixupSystemCreateFullBackup(FixupBase):
|
|||
_LOGGER.info("Creating a full backup")
|
||||
await self.sys_backups.do_backup_full()
|
||||
|
||||
@property
|
||||
def issues(self) -> list[IssueType]:
|
||||
"""Return a IssueType enum list."""
|
||||
return [IssueType.NO_CURRENT_BACKUP]
|
||||
|
||||
@property
|
||||
def suggestion(self) -> SuggestionType:
|
||||
"""Return a SuggestionType enum."""
|
||||
|
|
Loading…
Reference in New Issue