diff --git a/homeassistant/components/husqvarna_automower_ble/entity.py b/homeassistant/components/husqvarna_automower_ble/entity.py index cb62f36027a9..32e5873ab0e8 100644 --- a/homeassistant/components/husqvarna_automower_ble/entity.py +++ b/homeassistant/components/husqvarna_automower_ble/entity.py @@ -2,7 +2,11 @@ from __future__ import annotations -from homeassistant.helpers.device_registry import DeviceInfo +from homeassistant.helpers.device_registry import ( + CONNECTION_BLUETOOTH, + DeviceInfo, + format_mac, +) from homeassistant.helpers.entity import EntityDescription from homeassistant.helpers.update_coordinator import CoordinatorEntity @@ -23,6 +27,8 @@ class HusqvarnaAutomowerBleEntity(CoordinatorEntity[HusqvarnaCoordinator]): identifiers={(DOMAIN, f"{coordinator.address}_{coordinator.channel_id}")}, manufacturer=MANUFACTURER, model_id=coordinator.model, + suggested_area="Garden", + connections={(CONNECTION_BLUETOOTH, format_mac(coordinator.address))}, ) @property diff --git a/tests/components/husqvarna_automower_ble/snapshots/test_init.ambr b/tests/components/husqvarna_automower_ble/snapshots/test_init.ambr index 6b4ab8236f9d..2e7369e8a6d4 100644 --- a/tests/components/husqvarna_automower_ble/snapshots/test_init.ambr +++ b/tests/components/husqvarna_automower_ble/snapshots/test_init.ambr @@ -1,11 +1,15 @@ # serializer version: 1 # name: test_setup DeviceRegistryEntrySnapshot({ - 'area_id': None, + 'area_id': 'garden', 'config_entries': , 'config_entries_subentries': , 'configuration_url': None, 'connections': set({ + tuple( + 'bluetooth', + '00000000-0000-0000-0000-000000000003', + ), }), 'disabled_by': None, 'entry_type': None,