diff --git a/homeassistant/components/bluetooth/const.py b/homeassistant/components/bluetooth/const.py index 3174603f08e328..891e6d8be8274b 100644 --- a/homeassistant/components/bluetooth/const.py +++ b/homeassistant/components/bluetooth/const.py @@ -58,7 +58,7 @@ class AdapterDetails(TypedDict, total=False): address: str sw_version: str - hw_version: str + hw_version: str | None passive_scan: bool diff --git a/homeassistant/components/bluetooth/util.py b/homeassistant/components/bluetooth/util.py index 3f6c862e53d224..19efab7a15c7b5 100644 --- a/homeassistant/components/bluetooth/util.py +++ b/homeassistant/components/bluetooth/util.py @@ -46,7 +46,7 @@ async def async_get_bluetooth_adapters() -> dict[str, AdapterDetails]: adapters[adapter] = AdapterDetails( address=adapter1["Address"], sw_version=adapter1["Name"], # This is actually the BlueZ version - hw_version=adapter1["Modalias"], + hw_version=adapter1.get("Modalias"), passive_scan="org.bluez.AdvertisementMonitorManager1" in details, ) return adapters