You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
You need to check the _status first:
2024-04-16 10:51:23.935 ERROR (SyncWorker_16) [homeassistant.util.logging] Exception in _update_handler when dispatching 'localtuya_bf027de824a9597261ef1a': (None,)
Traceback (most recent call last):
File "/config/custom_components/localtuya/entity.py", line 162, in _update_handler
status = _status.copy()
^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'copy'
fafeeca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to check the
_status
first:fafeeca
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I forgot that when entities shutdown it sends "None" instead of empty dict.