Home Assistant Unofficial Reference 2024.12.1
models.py
Go to the documentation of this file.
1 """Models helper class for the usb integration."""
2 
3 from __future__ import annotations
4 
5 from dataclasses import dataclass
6 
7 
8 @dataclass
9 class USBDevice:
10  """A usb device."""
11 
12  device: str
13  vid: str
14  pid: str
15  serial_number: str | None
16  manufacturer: str | None
17  description: str | None