mirror of
https://github.com/jpawlowski/hass.tibber_prices.git
synced 2026-03-29 21:03:40 +00:00
25 lines
669 B
Python
25 lines
669 B
Python
"""Custom types for tibber_prices."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from dataclasses import dataclass
|
|
from typing import TYPE_CHECKING
|
|
|
|
if TYPE_CHECKING:
|
|
from homeassistant.config_entries import ConfigEntry
|
|
from homeassistant.loader import Integration
|
|
|
|
from .api import IntegrationBlueprintApiClient
|
|
from .coordinator import BlueprintDataUpdateCoordinator
|
|
|
|
|
|
type IntegrationBlueprintConfigEntry = ConfigEntry[IntegrationBlueprintData]
|
|
|
|
|
|
@dataclass
|
|
class IntegrationBlueprintData:
|
|
"""Data for the Blueprint integration."""
|
|
|
|
client: IntegrationBlueprintApiClient
|
|
coordinator: BlueprintDataUpdateCoordinator
|
|
integration: Integration
|