mirror of
https://github.com/home-assistant/core.git
synced 2026-09-27 18:08:37 -04:00
This reverts commit b15c9ad130.
This commit is contained in:
@@ -1078,21 +1078,3 @@ async def test_xmod_model_lookup(
|
||||
)
|
||||
assert device
|
||||
assert device.model == xmod_model
|
||||
|
||||
|
||||
async def test_device_entry_bt_address(
|
||||
hass: HomeAssistant,
|
||||
device_registry: dr.DeviceRegistry,
|
||||
mock_rpc_device: Mock,
|
||||
) -> None:
|
||||
"""Check if BT address is added to device entry connections."""
|
||||
entry = await init_integration(hass, 2)
|
||||
|
||||
device = device_registry.async_get_device(
|
||||
identifiers={(DOMAIN, entry.entry_id)},
|
||||
connections={(dr.CONNECTION_NETWORK_MAC, dr.format_mac(entry.unique_id))},
|
||||
)
|
||||
|
||||
assert device
|
||||
assert len(device.connections) == 2
|
||||
assert (dr.CONNECTION_BLUETOOTH, "12:34:56:78:9A:BE") in device.connections
|
||||
|
||||
Reference in New Issue
Block a user