mirror of
https://github.com/home-assistant/core
synced 2024-08-02 23:40:32 +02:00
![Michael](/assets/img/avatar_default.png)
* Add strict type annotations * Add missing futur import * Apply suggestions * Apply suggestions
19 lines
443 B
Python
19 lines
443 B
Python
"""Constants for the Canary integration."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from collections.abc import ValuesView
|
|
from typing import List, Optional, Tuple, TypedDict
|
|
|
|
from canary.api import Location
|
|
|
|
|
|
class CanaryData(TypedDict):
|
|
"""TypedDict for Canary Coordinator Data."""
|
|
|
|
locations: dict[str, Location]
|
|
readings: dict[str, ValuesView]
|
|
|
|
|
|
SensorTypeItem = Tuple[str, Optional[str], Optional[str], Optional[str], List[str]]
|