refactor(ups-hid): auto detect device and protocol logic

Signed-off-by: bullshit <coding@ow-software.pl>
This commit is contained in:
bullshit committed 2025-08-17 19:43:14 +02:00
1 parent 753b015139
commit ed284af812
9 files changed
+142 -128

No files matched your search

+3 -2
View File
@@ -36,11 +36,12 @@ external_components:
type: local
path: components
# Test with unknown vendor ID to trigger validation warning
# Test with unknown vendor ID for troubleshooting mode validation
ups_hid:
id: ups_monitor
update_interval: 30s
usb_vendor_id: 0x9999 # Unknown vendor ID - should trigger warning
# Using manual USB IDs in troubleshooting mode (component will try auto-detection first)
usb_vendor_id: 0x9999 # Unknown vendor ID - should trigger warning but still work
usb_product_id: 0x0001
auto_detect_protocol: true
protocol_timeout: 15s