Clarified comments and docstrings.
CI / Formatting (push) Successful in 6s
CI / Linting (push) Successful in 6s
CI / Tests (push) Successful in 29s
CI / Type Checking (push) Successful in 23s
CI / Spelling (push) Successful in 40s

This commit is contained in:
2026-05-18 14:37:36 -04:00
parent 2f6d0bc1ed
commit 4d0ae3d1ea
12 changed files with 57 additions and 57 deletions
+4 -4
View File
@@ -51,10 +51,10 @@ class OwncastSentry(Plugin):
return Config
async def start(self) -> None:
"""Initialize all services and register recurring tasks.
"""Initialize services and schedule stream state updates.
Registers a recurring task every minute to update the state of
all subscribed streams.
Starts a scheduler coroutine that updates subscribed streams at the top
of each wall-clock minute.
"""
# Load configuration
config: Config = self.config # type: ignore[assignment]
@@ -170,7 +170,7 @@ class OwncastSentry(Plugin):
await self._update_all_stream_states()
async def _update_all_stream_states(self) -> None:
"""Update all stream states."""
"""Update stream states for domains with active subscriptions."""
try:
# Get list of all stream domains with active subscriptions
subscribed_domains = (