Add logging and stability fixes
This commit is contained in:
committed by
rospogrigio
parent
7384f1fc54
commit
ff3ca99b29
@@ -181,8 +181,7 @@ class TuyaDevice(pytuya.TuyaListener):
|
||||
@callback
|
||||
def disconnected(self, exc):
|
||||
"""Device disconnected."""
|
||||
if exc is not None:
|
||||
_LOGGER.error("Disconnected from %: %s", exc)
|
||||
_LOGGER.debug("Disconnected from %s: %s", self.id, exc)
|
||||
|
||||
signal = f"localtuya_{self._config_entry[CONF_DEVICE_ID]}"
|
||||
async_dispatcher_send(self._hass, signal, None)
|
||||
|
Reference in New Issue
Block a user