FreshlyBrewedCode / pymee

a python library to interact with homee
MIT License
8 stars 4 forks source link

Fix "'list' object is not an iterator" #10

Closed Taraman17 closed 10 months ago

Taraman17 commented 10 months ago

This patch catches the above error, which occurs in the _update_or_create_relationships function.

I'm not yet sure, why it happens, because the data I logged IS iterable and the for/in call should not fail. I have to investigate further and now the relationships may not be updated, of which I don't know which side-effects it has. But with this, the connection stays intact which should be more important for the users.

Also some deprecations are fixed and the readme is updated for the functions added lately.