|
@@ -427,6 +427,13 @@ class TuyaLocalDevice(object):
|
|
|
self.name,
|
|
self.name,
|
|
|
log_json(new_state),
|
|
log_json(new_state),
|
|
|
)
|
|
)
|
|
|
|
|
+ if "Err" in new_state:
|
|
|
|
|
+ _LOGGER.warning(
|
|
|
|
|
+ "%s protocol error %s: %s",
|
|
|
|
|
+ self.name,
|
|
|
|
|
+ new_state.get("Err"),
|
|
|
|
|
+ new_state.get("Error", "message not provided"),
|
|
|
|
|
+ )
|
|
|
_LOGGER.debug(
|
|
_LOGGER.debug(
|
|
|
"new state (incl pending): %s",
|
|
"new state (incl pending): %s",
|
|
|
log_json(self._get_cached_state()),
|
|
log_json(self._get_cached_state()),
|