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

Add manufacturer and model to bluetooth adapter device (#82769)

Co-authored-by: Paulus Schoutsen <balloob@gmail.com>
This commit is contained in:
J. Nick Koston
2022-11-27 10:44:44 -10:00
committed by GitHub
parent 873b903cf0
commit d6e287f47a
10 changed files with 79 additions and 13 deletions

View File

@@ -76,12 +76,20 @@ async def test_diagnostics(
"hw_version": "usb:v1D6Bp0246d053F",
"passive_scan": False,
"sw_version": "homeassistant",
"manufacturer": "ACME",
"product": "Bluetooth Adapter 5.0",
"product_id": "aa01",
"vendor_id": "cc01",
},
"hci1": {
"address": "00:00:00:00:00:02",
"hw_version": "usb:v1D6Bp0246d053F",
"passive_scan": True,
"sw_version": "homeassistant",
"manufacturer": "ACME",
"product": "Bluetooth Adapter 5.0",
"product_id": "aa01",
"vendor_id": "cc01",
},
},
"dbus": {
@@ -107,12 +115,20 @@ async def test_diagnostics(
"hw_version": "usb:v1D6Bp0246d053F",
"passive_scan": False,
"sw_version": "homeassistant",
"manufacturer": "ACME",
"product": "Bluetooth Adapter 5.0",
"product_id": "aa01",
"vendor_id": "cc01",
},
"hci1": {
"address": "00:00:00:00:00:02",
"hw_version": "usb:v1D6Bp0246d053F",
"passive_scan": True,
"sw_version": "homeassistant",
"manufacturer": "ACME",
"product": "Bluetooth Adapter 5.0",
"product_id": "aa01",
"vendor_id": "cc01",
},
},
"advertisement_tracker": {
@@ -249,6 +265,10 @@ async def test_diagnostics_macos(
"address": "00:00:00:00:00:00",
"passive_scan": False,
"sw_version": ANY,
"manufacturer": "Apple",
"product": "Unknown MacOS Model",
"product_id": "Unknown",
"vendor_id": "Unknown",
}
},
"manager": {
@@ -257,6 +277,10 @@ async def test_diagnostics_macos(
"address": "00:00:00:00:00:00",
"passive_scan": False,
"sw_version": ANY,
"manufacturer": "Apple",
"product": "Unknown MacOS Model",
"product_id": "Unknown",
"vendor_id": "Unknown",
}
},
"advertisement_tracker": {