mirror of
https://github.com/home-assistant/core.git
synced 2026-09-27 01:46:11 -04:00
Set stable device name in lunatone (#180915)
This commit is contained in:
@@ -205,8 +205,10 @@ class LunatoneDALILineStatusSensor(
|
||||
self._line_id = line_id
|
||||
|
||||
line_unique_id = f"{config_entry_unique_id}-line{line_id}"
|
||||
# Name must match the light platform, either of them may create the device
|
||||
self._attr_device_info = DeviceInfo(
|
||||
identifiers={(DOMAIN, line_unique_id)},
|
||||
name=f"DALI Line {line_id}",
|
||||
)
|
||||
self._attr_unique_id = f"{line_unique_id}-status"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user