fix again

This commit is contained in:
2025-12-07 12:42:43 +00:00
parent a765aa23f4
commit d24587c321
13 changed files with 21 additions and 185 deletions

23
providers/base.py Normal file
View File

@@ -0,0 +1,23 @@
from abc import ABC, abstractmethod
class BaseProvider(ABC):
"""Abstract base class for point-based outage providers."""
def __init__(self, config, session):
self.config = config
self.session = session
self.name = config.get('name', 'Unknown')
@abstractmethod
def fetch(self):
pass
class BaseCountyProvider(ABC):
"""Abstract base class for county-based outage providers."""
def __init__(self, config, session):
self.config = config
self.session = session
self.name = config.get('name', 'Unknown')
@abstractmethod
def fetch(self):
pass