Improve device details for Husqvarna BLE mower device (#150993)

This commit is contained in:
Christopher Fenner
2025-08-22 08:15:35 +02:00
committed by GitHub
parent 2b80a621af
commit e16eff6f28
2 changed files with 12 additions and 2 deletions
@@ -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
@@ -1,11 +1,15 @@
# serializer version: 1
# name: test_setup
DeviceRegistryEntrySnapshot({
'area_id': None,
'area_id': 'garden',
'config_entries': <ANY>,
'config_entries_subentries': <ANY>,
'configuration_url': None,
'connections': set({
tuple(
'bluetooth',
'00000000-0000-0000-0000-000000000003',
),
}),
'disabled_by': None,
'entry_type': None,