Appended subswitch id (i.e., dps) to the unique_id to allow different unique_ids for subswitches
This commit is contained in:
@@ -224,7 +224,7 @@ class TuyaDevice(SwitchEntity):
|
|||||||
@property
|
@property
|
||||||
def unique_id(self):
|
def unique_id(self):
|
||||||
"""Return unique device identifier."""
|
"""Return unique device identifier."""
|
||||||
return f"local_{self._device.unique_id}"
|
return f"local_{self._device.unique_id}_{self._switch_id}"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def available(self):
|
def available(self):
|
||||||
|
Reference in New Issue
Block a user