Limit USB discovery to specific manufacturer/description/serial_number matches (#55236)

* Limit USB discovery to specific manufacturer/description/serial_number matches

* test for None case
This commit is contained in:
J. Nick Koston
2021-08-26 08:59:02 -05:00
committed by GitHub
parent 2d5176eee9
commit a89057ece5
5 changed files with 324 additions and 13 deletions

View File

@@ -210,6 +210,9 @@ MANIFEST_SCHEMA = vol.Schema(
{
vol.Optional("vid"): vol.All(str, verify_uppercase),
vol.Optional("pid"): vol.All(str, verify_uppercase),
vol.Optional("serial_number"): vol.All(str, verify_lowercase),
vol.Optional("manufacturer"): vol.All(str, verify_lowercase),
vol.Optional("description"): vol.All(str, verify_lowercase),
vol.Optional("known_devices"): [str],
}
)