Files
home-automation/app/integrations/homeassistant.py
T

13 lines
284 B
Python
Raw Normal View History

2026-04-19 20:19:58 +02:00
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)