Prepand unique_id with local_
Avoid collisions with the tuya integration.
This commit is contained in:
@@ -169,7 +169,7 @@ class TuyaDevice(CoverEntity):
|
||||
@property
|
||||
def unique_id(self):
|
||||
"""Return unique device identifier."""
|
||||
return self._device.unique_id
|
||||
return f"local_{self._device.unique_id}"
|
||||
|
||||
@property
|
||||
def available(self):
|
||||
|
@@ -214,7 +214,7 @@ class TuyaDevice(Light):
|
||||
@property
|
||||
def unique_id(self):
|
||||
"""Return unique device identifier."""
|
||||
return self._device.unique_id
|
||||
return f"local_{self._device.unique_id}"
|
||||
|
||||
@property
|
||||
def available(self):
|
||||
|
@@ -224,7 +224,7 @@ class TuyaDevice(SwitchEntity):
|
||||
@property
|
||||
def unique_id(self):
|
||||
"""Return unique device identifier."""
|
||||
return self._device.unique_id
|
||||
return f"local_{self._device.unique_id}"
|
||||
|
||||
@property
|
||||
def available(self):
|
||||
|
Reference in New Issue
Block a user