Add issues field to create full backup suggestion (#5024)

This commit is contained in:
Mike Degatano 2024-04-22 03:58:22 -04:00 committed by GitHub
parent 18d9d32bca
commit f18213361a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -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."""