Prepand unique_id with local_

Avoid collisions with the tuya integration.
This commit is contained in:
Pierre Ståhl
2020-09-03 12:04:52 +02:00
parent 4335507804
commit a0bf22cce5
3 changed files with 3 additions and 3 deletions

View File

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