mirror of https://github.com/home-assistant/core
18 lines
356 B
Python
18 lines
356 B
Python
"""USB discovery data."""
|
|
|
|
from dataclasses import dataclass
|
|
|
|
from homeassistant.data_entry_flow import BaseServiceInfo
|
|
|
|
|
|
@dataclass(slots=True)
|
|
class UsbServiceInfo(BaseServiceInfo):
|
|
"""Prepared info from usb entries."""
|
|
|
|
device: str
|
|
vid: str
|
|
pid: str
|
|
serial_number: str | None
|
|
manufacturer: str | None
|
|
description: str | None
|