krahabb / meross_lan

Home Assistant integration for Meross devices
MIT License
416 stars 45 forks source link

Error in async_http_request: 'str' object has no attribute 'get' #28

Closed scannifn closed 3 years ago

scannifn commented 3 years ago

Hi, I'm trying to replace Cloud integration with this one (LAN). I'm using the last one integration v2.0.1 on HASSIO.

Just for your info I still have installaed Meross Cloud IoT integration.

After added my two devices MSG100 cover garage I checked in the registry and there is this error:

Logger: custom_components.meross_lan Source: custom_components/meross_lan/logger.py:29 Integration: Meross LAN (documentation, issues) First occurred: 11:08:41 (2 occurrences) Last logged: 11:08:41

MerossDevice(2008204790056336100448e1e92ceb3d) error in async_http_request: 'str' object has no attribute 'get' MerossDevice(2008206126994936100448e1e92ce8b8) error in async_http_request: 'str' object has no attribute 'get'

scannifn commented 3 years ago

Hello @krahabb , please could you leave a comment related to your action: closed? It will be appreciated

krahabb commented 3 years ago

Hello @scannifn Very precious hint here since I cannot really test the garagedoor since the code is just 'guessed' This error is of course related to a lack of safety checks when parsing responses and I'm already working on making it more robust but I would need some more logging in order to better sort it out. We'll continue this topic on #29 if you're up to.

To enable debug logging please follow this one: https://github.com/krahabb/meross_lan/issues/12#issuecomment-846390799

krahabb commented 3 years ago

I thought I was able to write before the GitHub UI close...

krahabb commented 3 years ago

Like I said we'll contine on #29 in order to have a consistent flow :)

scannifn commented 3 years ago

I'm really sorry!! I was too fast... whatelse can I say: SCUSA! Ok, we can continue to troubleshooting on #29. Thanks!

PS If you need more details you are welcome!!! :)

krahabb commented 3 years ago

FIGURATI!!! I'm italian too :) You were very fast in replying but it was me dumb closing that way!

See you