diff --git a/custom_components/localtuya/common.py b/custom_components/localtuya/common.py index cd503c2af..e5ab5aac0 100644 --- a/custom_components/localtuya/common.py +++ b/custom_components/localtuya/common.py @@ -185,6 +185,11 @@ async def _make_connection(self): """Subscribe localtuya entity events.""" self.info("Trying to connect to %s...", self._dev_config_entry[CONF_HOST]) + if "addr:" in self._dev_config_entry[CONF_HOST]: + self._dev_config_entry[CONF_HOST] = self._dev_config_entry[ + CONF_HOST + ].replace("addr:", "") + try: self._interface = await pytuya.connect( self._dev_config_entry[CONF_HOST],