hass.tibber_prices/custom_components/tibber_prices/data.py
2025-04-18 14:12:10 +00:00

25 lines
629 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 TibberPricesApiClient
from .coordinator import BlueprintDataUpdateCoordinator
type TibberPricesConfigEntry = ConfigEntry[TibberPricesData]
@dataclass
class TibberPricesData:
"""Data for the Blueprint integration."""
client: TibberPricesApiClient
coordinator: BlueprintDataUpdateCoordinator
integration: Integration