mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Tweak unique id formatting for Melnor Bluetooth switches (#77773)
This commit is contained in:
parent
ed365cb8e9
commit
7e9f1a508a
@ -48,10 +48,7 @@ class MelnorSwitch(MelnorBluetoothBaseEntity, SwitchEntity):
|
||||
super().__init__(coordinator)
|
||||
self._valve_index = valve_index
|
||||
|
||||
self._attr_unique_id = (
|
||||
f"switch-{self._attr_unique_id}-zone{self._valve().id}-manual"
|
||||
)
|
||||
|
||||
self._attr_unique_id = f"{self._attr_unique_id}-zone{self._valve().id}-manual"
|
||||
self._attr_name = f"{self._device.name} Zone {self._valve().id+1}"
|
||||
|
||||
@property
|
||||
|
Loading…
x
Reference in New Issue
Block a user