core/homeassistant/components/canary/model.py

15 lines
353 B
Python

"""Constants for the Canary integration."""
from __future__ import annotations
from collections.abc import ValuesView
from typing import TypedDict
from canary.model import Location, Reading
class CanaryData(TypedDict):
"""TypedDict for Canary Coordinator Data."""
locations: dict[str, Location]
readings: dict[str, ValuesView[Reading]]