2021-05-11 15:28:17 +00:00
|
|
|
"""Type definitions for 1-Wire integration."""
|
|
|
|
from __future__ import annotations
|
|
|
|
|
2021-10-22 09:45:40 +00:00
|
|
|
from dataclasses import dataclass
|
2021-05-11 15:28:17 +00:00
|
|
|
|
2021-10-22 09:45:40 +00:00
|
|
|
from homeassistant.helpers.entity import DeviceInfo
|
|
|
|
|
|
|
|
|
|
|
|
@dataclass
|
|
|
|
class OWDeviceDescription:
|
2022-05-09 11:16:23 +00:00
|
|
|
"""1-Wire device description class."""
|
2021-10-22 09:45:40 +00:00
|
|
|
|
|
|
|
device_info: DeviceInfo
|
|
|
|
|
2021-05-11 15:28:17 +00:00
|
|
|
family: str
|
2021-10-22 09:45:40 +00:00
|
|
|
id: str
|
|
|
|
path: str
|
2021-05-11 15:28:17 +00:00
|
|
|
type: str
|