hass-core/homeassistant/components/brother/model.py
Maciej Bieniek 343e0e0933
Use attrs instead of properties in Brother (#51742)
* Use attrs instead of properties

* Use get() for device_class
2021-06-11 13:36:17 +02:00

15 lines
333 B
Python

"""Type definitions for Brother integration."""
from __future__ import annotations
from typing import TypedDict
class SensorDescription(TypedDict, total=False):
"""Sensor description class."""
icon: str | None
label: str
unit: str | None
enabled: bool
state_class: str | None
device_class: str | None