mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Set connections on device for acaia (#132064)
This commit is contained in:
parent
13e9f1935d
commit
54c5d1002b
@ -2,7 +2,11 @@
|
|||||||
|
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
|
||||||
from homeassistant.helpers.device_registry import DeviceInfo, format_mac
|
from homeassistant.helpers.device_registry import (
|
||||||
|
CONNECTION_BLUETOOTH,
|
||||||
|
DeviceInfo,
|
||||||
|
format_mac,
|
||||||
|
)
|
||||||
from homeassistant.helpers.entity import EntityDescription
|
from homeassistant.helpers.entity import EntityDescription
|
||||||
from homeassistant.helpers.update_coordinator import CoordinatorEntity
|
from homeassistant.helpers.update_coordinator import CoordinatorEntity
|
||||||
|
|
||||||
@ -33,6 +37,7 @@ class AcaiaEntity(CoordinatorEntity[AcaiaCoordinator]):
|
|||||||
manufacturer="Acaia",
|
manufacturer="Acaia",
|
||||||
model=self._scale.model,
|
model=self._scale.model,
|
||||||
suggested_area="Kitchen",
|
suggested_area="Kitchen",
|
||||||
|
connections={(CONNECTION_BLUETOOTH, self._scale.mac)},
|
||||||
)
|
)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
@ -5,6 +5,10 @@
|
|||||||
'config_entries': <ANY>,
|
'config_entries': <ANY>,
|
||||||
'configuration_url': None,
|
'configuration_url': None,
|
||||||
'connections': set({
|
'connections': set({
|
||||||
|
tuple(
|
||||||
|
'bluetooth',
|
||||||
|
'aa:bb:cc:dd:ee:ff',
|
||||||
|
),
|
||||||
}),
|
}),
|
||||||
'disabled_by': None,
|
'disabled_by': None,
|
||||||
'entry_type': None,
|
'entry_type': None,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user