-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An error occurred: 'list' object is not an iterator #7
Comments
The debug log from pymee shows (I truncated the {'all': message, since it may contain personal information):
In the received message the "options" collections look all correct and in other cases do not lead to this error. A first idea to cope with this error is to change model.py to following: import logging
_LOGGER = logging.getLogger(__name__)
class HomeeAttributeOptions:
def __init__(self, attributeOptions):
try:
iterator = iter(attributeOptions)
except TypeError:
_LOGGER.warn("options are not Iterable: " + attributeOptions)
raise TypeError("options are not Iterable.")
else:
self._data = attributeOptions |
After downgrading to pymee 1.7.1, the error still occurs - so it does not seem to be linked to the latest additions. |
I'm starting to get another error at the same time, the above happens:
|
I have the same issue, in that my log viewer is getting spammed with |
I was able to narrow it down to the _update_or_create_relationships(self, data: dict) function. With try/except and logging I got: With the upcoming update however, the exception will be caught and at least the connection stays intact. |
After the last update, my HA logs show the following:
2023-06-26 13:01:20.559 ERROR (MainThread) [pymee] An error occurred: invalid state
2023-06-26 13:01:25.918 ERROR (MainThread) [pymee] An error occurred: 'list' object is not an iterator
The second line gets repeated then every 5 seconds for about 20 minutes
Not sure yet where it comes from - I keep investigating.
The text was updated successfully, but these errors were encountered: