mirror of
https://github.com/home-assistant/core.git
synced 2026-05-18 06:20:17 +01:00
12abff5b9e
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
24 lines
459 B
Python
24 lines
459 B
Python
"""Models helper class for the usb integration."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from dataclasses import dataclass
|
|
|
|
|
|
@dataclass(slots=True, frozen=True, kw_only=True)
|
|
class SerialDevice:
|
|
"""A serial device."""
|
|
|
|
device: str
|
|
serial_number: str | None
|
|
manufacturer: str | None
|
|
description: str | None
|
|
|
|
|
|
@dataclass(slots=True, frozen=True, kw_only=True)
|
|
class USBDevice(SerialDevice):
|
|
"""A usb device."""
|
|
|
|
vid: str
|
|
pid: str
|