1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Add known devices to USB Vendor / Product IDs (#54986)

Co-authored-by: kpine <keith.pine@gmail.com>
This commit is contained in:
J. Nick Koston
2021-08-21 14:56:49 -05:00
committed by GitHub
parent 5329dccd8b
commit 0403ea715e
6 changed files with 32 additions and 13 deletions

View File

@@ -33,7 +33,12 @@ def generate_and_validate(integrations: list[dict[str, str]]) -> str:
continue
for entry in match_types:
match_list.append({"domain": domain, **entry})
match_list.append(
{
"domain": domain,
**{k: v for k, v in entry.items() if k != "known_devices"},
}
)
return BASE.format(json.dumps(match_list, indent=4))