diff --git a/custom_components/localtuya/switch.py b/custom_components/localtuya/switch.py index 1eb8529..e3737eb 100644 --- a/custom_components/localtuya/switch.py +++ b/custom_components/localtuya/switch.py @@ -224,7 +224,7 @@ class TuyaDevice(SwitchEntity): @property def unique_id(self): """Return unique device identifier.""" - return f"local_{self._device.unique_id}" + return f"local_{self._device.unique_id}_{self._switch_id}" @property def available(self):