vanviegen / hue-thief

Factory reset Philips Hue bulbs using an EZSP-based Zigbee USB stick. After a reset, bulbs can easily join any type of compatible bridge.
GNU General Public License v3.0
178 stars 20 forks source link

"TypeError: cannot 'yield from' a coroutine object in a non-coroutine generator" #5

Closed raiderjoey closed 5 years ago

raiderjoey commented 5 years ago

I'm getting the following error when I attempt to run hue-thief using the following command python3 hue-thief.py /dev/ttyUSB0

Any ideas as to the cause?

hue-thief.py:28: RuntimeWarning: coroutine 'setup' was never awaited s = yield from util.setup(device, baudrate=57600) Traceback (most recent call last): File "hue-thief.py", line 124, in loop.run_until_complete(steal(sys.argv[1])) File "/usr/lib/python3.5/asyncio/base_events.py", line 466, in run_until_complete return future.result() File "/usr/lib/python3.5/asyncio/futures.py", line 293, in result raise self._exception File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step result = coro.send(None) File "hue-thief.py", line 28, in steal s = yield from util.setup(device, baudrate=57600) TypeError: cannot 'yield from' a coroutine object in a non-coroutine generator