From 221292ad149550e7f5d194f1975bd7915d7a0603 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Mon, 29 Apr 2024 22:24:58 +0200 Subject: [PATCH] Mark issues in FixupBase abstract (#5033) Since #5024 all fixups have an associated issue. Generally, it is generally better to have an issue for every fixup so that things can be mapped to repairs in Core easily. Let's mark the issues property as abstract to indicate subclasses are required to implement it. --- supervisor/resolution/fixups/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supervisor/resolution/fixups/base.py b/supervisor/resolution/fixups/base.py index 560998fa8..87787e9ce 100644 --- a/supervisor/resolution/fixups/base.py +++ b/supervisor/resolution/fixups/base.py @@ -58,9 +58,9 @@ class FixupBase(ABC, CoreSysAttributes): """Return a ContextType enum.""" @property + @abstractmethod def issues(self) -> list[IssueType]: """Return a IssueType enum list.""" - return [] @property def auto(self) -> bool: