mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 15:47:12 +00:00
Add missing connection for gardena ble device (#148376)
This commit is contained in:
parent
e3cc4acdc6
commit
b151a9bf75
@ -13,6 +13,7 @@ from homeassistant.components import bluetooth
|
|||||||
from homeassistant.const import CONF_ADDRESS, Platform
|
from homeassistant.const import CONF_ADDRESS, Platform
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.exceptions import ConfigEntryNotReady
|
from homeassistant.exceptions import ConfigEntryNotReady
|
||||||
|
from homeassistant.helpers import device_registry as dr
|
||||||
from homeassistant.helpers.device_registry import DeviceInfo
|
from homeassistant.helpers.device_registry import DeviceInfo
|
||||||
from homeassistant.util import dt as dt_util
|
from homeassistant.util import dt as dt_util
|
||||||
|
|
||||||
@ -74,6 +75,7 @@ async def async_setup_entry(
|
|||||||
|
|
||||||
device = DeviceInfo(
|
device = DeviceInfo(
|
||||||
identifiers={(DOMAIN, address)},
|
identifiers={(DOMAIN, address)},
|
||||||
|
connections={(dr.CONNECTION_BLUETOOTH, address)},
|
||||||
name=name,
|
name=name,
|
||||||
sw_version=sw_version,
|
sw_version=sw_version,
|
||||||
manufacturer=manufacturer,
|
manufacturer=manufacturer,
|
||||||
|
@ -6,6 +6,10 @@
|
|||||||
'config_entries_subentries': <ANY>,
|
'config_entries_subentries': <ANY>,
|
||||||
'configuration_url': None,
|
'configuration_url': None,
|
||||||
'connections': set({
|
'connections': set({
|
||||||
|
tuple(
|
||||||
|
'bluetooth',
|
||||||
|
'00000000-0000-0000-0000-000000000001',
|
||||||
|
),
|
||||||
}),
|
}),
|
||||||
'disabled_by': None,
|
'disabled_by': None,
|
||||||
'entry_type': None,
|
'entry_type': None,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user