|
@@ -107,7 +107,7 @@ class TuyaLocalEntity:
|
|
|
if a.rawtype == "json":
|
|
if a.rawtype == "json":
|
|
|
try:
|
|
try:
|
|
|
value = json.loads(value)
|
|
value = json.loads(value)
|
|
|
- except json.JSONDecodeError:
|
|
|
|
|
|
|
+ except json.JSONDecodeError, TypeError:
|
|
|
if value is not None:
|
|
if value is not None:
|
|
|
_LOGGER.warning(
|
|
_LOGGER.warning(
|
|
|
"Failed to decode JSON for attribute %s: %s",
|
|
"Failed to decode JSON for attribute %s: %s",
|