diff --git a/custom_components/localtuya/pytuya/__init__.py b/custom_components/localtuya/pytuya/__init__.py index 215876e07..d089b37c2 100644 --- a/custom_components/localtuya/pytuya/__init__.py +++ b/custom_components/localtuya/pytuya/__init__.py @@ -137,7 +137,7 @@ def error(self, msg, *args): def exception(self, msg, *args): """Exception level log.""" - return self._logger.log(logging.EXCEPTION, msg, *args) + return self._logger.exception(msg, *args) def pack_message(msg):