Home Assistant Unofficial Reference 2024.12.1
model.py
Go to the documentation of this file.
1 """Constants for the Canary integration."""
2 
3 from __future__ import annotations
4 
5 from collections.abc import ValuesView
6 from typing import TypedDict
7 
8 from canary.model import Location, Reading
9 
10 
11 class CanaryData(TypedDict):
12  """TypedDict for Canary Coordinator Data."""
13 
14  locations: dict[str, Location]
15  readings: dict[str, ValuesView[Reading]]