Commit graph

17 commits

Author SHA1 Message Date
epenet
da7c5f4722
Break long lines in discovery_info () 2021-12-10 12:48:47 +01:00
epenet
c05eca1c82
Remove log flooding prevention logic from discovery info ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-08 10:28:26 -10:00
epenet
35c40bcf85
Enable warnings for UsbServiceInfo ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-01 05:44:01 -10:00
epenet
cbbf22db52
Use dataclass for UsbServiceInfo ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-23 10:51:54 -06:00
epenet
67e13b35db
Revert "Create new usb constants ()" ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-22 10:28:10 -06:00
epenet
263101b2ab
Create new usb constants () 2021-11-21 18:14:42 -06:00
epenet
0dcfd55c84
Adjust async_step_usb signature for strict typing ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-16 19:03:50 +01:00
J. Nick Koston
b86e19143d
Prevent event loop delay / instability from discovery () 2021-10-13 08:37:14 -07:00
J. Nick Koston
673519f6bf
Prefer more targeted matchers in USB discovery ()
- If there is a more targeted match it should win discovery
2021-09-12 15:07:40 -07:00
Pascal Vizeli
8319f232b8
Disable observer for USB on containers ()
* Disable observer for USB on containers

* remove operating system test

Co-authored-by: J. Nick Koston <nick@koston.org>
2021-09-03 08:05:37 +02:00
J. Nick Koston
dfc2556669
Gracefully handle pyudev failing to filter on WSL ()
* Gracefully handle pyudev failing to filter on WSL

* add debug message

* add mocks so we reach the new check
2021-08-26 15:47:10 -05:00
J. Nick Koston
a89057ece5
Limit USB discovery to specific manufacturer/description/serial_number matches ()
* Limit USB discovery to specific manufacturer/description/serial_number matches

* test for None case
2021-08-26 09:59:02 -04:00
J. Nick Koston
b6a1153d42
Skip trying the pyudev observer when using standalone docker for usb () 2021-08-22 11:30:35 -05:00
J. Nick Koston
42f7f19be5
Switch periodic USB scanning to on-demand websocket when observer is not available () 2021-08-21 16:06:44 -05:00
J. Nick Koston
51434c5faa
Gracefully handle udev not available via OSError when setting up usb () 2021-08-21 07:24:45 -05:00
J. Nick Koston
c609236a63
Move get_serial_by_id and human_readable_device_name to usb () 2021-08-21 07:24:21 -05:00
J. Nick Koston
dc74a52f58
Add support for USB discovery ()
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-08-20 14:04:18 -05:00