doudz / homeassistant-zigate

zigate component for Home Assistant
MIT License
48 stars 13 forks source link

Unable to load zigate.json #26

Closed Jsl-1 closed 5 years ago

Jsl-1 commented 5 years ago

Hi @doudz,

For a few days, I lost my devices every time i restart hass. I think it started when i add group to my ikea outlets. Here is the log when loading zigate.json : 2019-01-24 10:35:21 DEBUG (SyncWorker_0) [zigate] Try loading persistent file 2019-01-24 10:35:21 ERROR (SyncWorker_0) [zigate] Failed to load persistent file /config/zigate.json 2019-01-24 10:35:21 ERROR (SyncWorker_0) [zigate] Traceback (most recent call last): File "/config/deps/lib/python3.6/site-packages/zigate/core.py", line 267, in load_state for k, v in groups: ValueError: too many values to unpack (expected 2)

And here is my zigate.json zigate.json.txt

It is working if I stop hass, restore zigate.json, remove groups in zigate.json and restart hass.

Thank you for your help!

Jsl-1 commented 5 years ago

I'm not sure it was the same problem as before, because I updated to zigate lib 0.26.3 just before openning this issue;)

doudz commented 5 years ago

I'll check

doudz commented 5 years ago

Fixed in 0.26.4, thanks !

Jsl-1 commented 5 years ago

It works well, thank you very much !