Open jinnatar opened 3 years ago
This is a bit better today but still not great:
%> util/devicelist.py
CRITICAL:absl:Default hub not known, you should run cozify.authenticate()
Traceback (most recent call last):
File "util/devicelist.py", line 21, in <module>
main()
File "util/devicelist.py", line 11, in main
devs = hub.devices()
File "/home/artanicus/.local/lib/python3.8/site-packages/cozify/hub.py", line 37, in devices
_fill_kwargs(kwargs)
File "/home/artanicus/.local/lib/python3.8/site-packages/cozify/hub.py", line 546, in _fill_kwargs
kwargs['hub_id'] = _get_id(**kwargs)
File "/home/artanicus/.local/lib/python3.8/site-packages/cozify/hub.py", line 535, in _get_id
return default()
File "/home/artanicus/.local/lib/python3.8/site-packages/cozify/hub.py", line 456, in default
raise AttributeError
AttributeError
If there is no valid cloud state saved:
Instead, it should be detected that auth hasn't been done successfully and error on that, not an internal consistency AttributeError.