fix: document skip_reason in Plugin docstring; remove unused import in test

This commit is contained in:
2026-04-25 16:10:35 +02:00
parent aeb78dcb8e
commit c9c2ed772f
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -29,6 +29,7 @@ class Plugin(ABC):
description: Human-readable description
interval: Collection interval in seconds (0 for InfoPlugin = collect once)
enabled: Whether plugin is active (can be disabled via config)
skip_reason: Optional[str] = None # Set before returning False from initialize() so loader logs INFO not WARNING
"""
name: str = ""
+1 -1
View File
@@ -2,7 +2,7 @@ import asyncio
import logging
import textwrap
from hbd.client.plugin import Plugin, PluginLoader, PluginRegistry
from hbd.client.plugin import PluginLoader, PluginRegistry
def test_plugin_skip_reason_defaults_none(tmp_path):