stianaske / pybotvac

Python module for interacting with Neato Botvac Connected vacuum robots.
MIT License
85 stars 44 forks source link

Not able to fetch maps #22

Closed quack3d closed 6 years ago

quack3d commented 6 years ago

I'm trying the example:

from pybotvac import Account for map_info in Account('sample@email.com', 'sample_password').maps: print(map_info)

But I get no output in terminal. If I do the same for .robots it shows serial, key, name and Traits: ['maps'] like it should. I have 20 maps available in the Neato app.

DeastinY commented 6 years ago

same here

dshokouhi commented 6 years ago

hmm what botvac do you guys have? I have a D7 and the map and map info is being pulled properly

quack3d commented 6 years ago

Botvac Connected.

DeastinY commented 6 years ago

D3 here

stianaske commented 6 years ago

Thanks for the input. This was a bug where we accidentally iterated over the internal list of robots instead of using the property which also refreshes the robot list. This caused the maps dict to be empty unless a robot had been accessed first. Resolved in version 0.0.10.