mirror of
https://github.com/home-assistant/core.git
synced 2026-09-19 16:23:06 +01:00
Improve device details for Husqvarna BLE mower device (#150993)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user