hass.tibber_prices/custom_components/tibber_prices/data.py
Julian Pawlowski 5f8abf3a63 refactoring
2025-04-18 17:08:08 +00:00

25 lines
639 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 TibberPricesDataUpdateCoordinator
type TibberPricesConfigEntry = ConfigEntry[TibberPricesData]
@dataclass
class TibberPricesData:
"""Data for the tibber_prices integration."""
client: TibberPricesApiClient
coordinator: TibberPricesDataUpdateCoordinator
integration: Integration