Add missing connection for gardena ble device (#148376)

This commit is contained in:
Joakim Plate 2025-07-08 06:02:56 +02:00 committed by GitHub
parent e3cc4acdc6
commit b151a9bf75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -13,6 +13,7 @@ from homeassistant.components import bluetooth
from homeassistant.const import CONF_ADDRESS, Platform
from homeassistant.core import HomeAssistant
from homeassistant.exceptions import ConfigEntryNotReady
from homeassistant.helpers import device_registry as dr
from homeassistant.helpers.device_registry import DeviceInfo
from homeassistant.util import dt as dt_util
@ -74,6 +75,7 @@ async def async_setup_entry(
device = DeviceInfo(
identifiers={(DOMAIN, address)},
connections={(dr.CONNECTION_BLUETOOTH, address)},
name=name,
sw_version=sw_version,
manufacturer=manufacturer,

View File

@ -6,6 +6,10 @@
'config_entries_subentries': <ANY>,
'configuration_url': None,
'connections': set({
tuple(
'bluetooth',
'00000000-0000-0000-0000-000000000001',
),
}),
'disabled_by': None,
'entry_type': None,