2021-05-03 13:10:20 +00:00
|
|
|
"""Type definitions for Brother integration."""
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
|
|
from typing import TypedDict
|
|
|
|
|
|
|
|
|
2021-06-11 11:36:17 +00:00
|
|
|
class SensorDescription(TypedDict, total=False):
|
2021-05-03 13:10:20 +00:00
|
|
|
"""Sensor description class."""
|
|
|
|
|
|
|
|
icon: str | None
|
|
|
|
label: str
|
|
|
|
unit: str | None
|
|
|
|
enabled: bool
|
2021-06-10 18:31:21 +00:00
|
|
|
state_class: str | None
|
2021-06-11 11:36:17 +00:00
|
|
|
device_class: str | None
|