13 lines
284 B
Python
13 lines
284 B
Python
from dataclasses import dataclass
|
|
|
|
from app.config import Settings
|
|
|
|
|
|
@dataclass(slots=True)
|
|
class HomeAssistantClient:
|
|
settings: Settings
|
|
|
|
def is_configured(self) -> bool:
|
|
return bool(self.settings.home_assistant_base_url and self.settings.home_assistant_auth_token)
|
|
|