%> sudo -Hu srv /srv/ephemeral/cozify-temp.git/cozify-single-sample.py
Traceback (most recent call last):
File "/srv/ephemeral/cozify-temp.git/cozify-single-sample.py", line 20, in <module>
main()
File "/srv/ephemeral/cozify-temp.git/cozify-single-sample.py", line 9, in main
data = hub.getDevices()
File "/usr/local/lib/python3.5/dist-packages/cozify/hub.py", line 39, in getDevices
if cloud._needHubToken():
File "/usr/local/lib/python3.5/dist-packages/cozify/cloud.py", line 219, in _needHubToken
ping = hub.ping()
File "/usr/local/lib/python3.5/dist-packages/cozify/hub.py", line 116, in ping
cloud_token = c.state['Cloud']['remotetoken']
File "/usr/lib/python3.5/configparser.py", line 1230, in __getitem__
raise KeyError(key)
KeyError: 'remotetoken'
On the previous run I entered an incorrect OTP, on the subsequent one we're unable to gracefully reset.
State at time of error, originally generated by v0.2.4:
On the previous run I entered an incorrect OTP, on the subsequent one we're unable to gracefully reset.
State at time of error, originally generated by v0.2.4:
Highly possible this is due to the hub state storage scheme change from name to uuid. Removing state and starting over recovers from this situation.