Closed ghvader closed 4 years ago
Could you test if this is still the case with the current master? #177 added a fix to cli with hs300, but it wasn't about emeter so I'm not sure if the emeter problem is there anymore after the big refactoring took place.
@rytilahti still an issue with .3.5 (worse actually) it bombs out right away instead of getting some info
$ /srv/homeassistant/bin/pyhs100 state
No host name given, trying discovery..
Discovering devices for 3 seconds
Traceback (most recent call last):
File "/srv/homeassistant/bin/pyhs100", line 10, in <module>
sys.exit(cli())
File "/srv/homeassistant/lib/python3.7/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/srv/homeassistant/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/srv/homeassistant/lib/python3.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/srv/homeassistant/lib/python3.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/click/decorators.py", line 63, in new_func
% object_type.__name__)
RuntimeError: Managed to invoke callback without a context object of type 'SmartDevice' existing`
We are closing this repository for new changes in favor of a new, asyncio-enabled continuation project: https://github.com/python-kasa/python-kasa
If the issue is still present in the new project, please feel free to open an issue there, thanks!
I know you guys are working on adding HS300 support (i was following along) installed version 0.3.4 today and noticed when i did a state, it worked on my HS300, but when it gets to my HS100 it throws an exception. so i figured i would report that in case it was helpful.
`
`