1
mirror of https://github.com/home-assistant/core synced 2024-08-28 03:36:46 +02:00
ha-core/homeassistant/components/usb/models.py
J. Nick Koston dc74a52f58
Add support for USB discovery (#54904)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-08-20 14:04:18 -05:00

17 lines
305 B
Python

"""Models helper class for the usb integration."""
from __future__ import annotations
from dataclasses import dataclass
@dataclass
class USBDevice:
"""A usb device."""
device: str
vid: str
pid: str
serial_number: str | None
manufacturer: str | None
description: str | None