Tweak unique id formatting for Melnor Bluetooth switches (#77773)

This commit is contained in:
Justin Vanderhooft 2022-09-04 09:56:10 -04:00 committed by GitHub
parent ed365cb8e9
commit 7e9f1a508a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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