Git Product home page Git Product logo

pycul's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

pycul's Issues

RuntimeError: cannot reuse already awaited coroutine

Dear Dirk
I am trying to migrate my home automation devices from Fhem to Home Assistant and one big issue is how to include FS20,FHT,ESA devices in HA software. Luckly I found your python script which would solve my problem and you really did an excellent job. Unfortunately after I ran the script (python3 cul2mqtt.py) and got the error (see below). It is possible to help because my skills in python programming are very low specially with asyncio.

Kind regards

Andrej

CUL serial port opened:
SerialTransport(<_UnixSelectorEventLoop running=True closed=False debug=False>, <main.culRxTx object at 0x7f73bd7cbac0>, Serial<id=0x7f73bd7cb820, open=True>(port='/dev/ttyACM0', baudrate=9600, bytesize=8, parity='N', stopbits=1, timeout=0, xonxoff=False, rtscts=False, dsrdtr=False))
cul2mqtt.py:132: RuntimeWarning: coroutine 'sleep' was never awaited
asyncio.sleep(0.3)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
cul2mqtt.py:135: RuntimeWarning: coroutine 'sleep' was never awaited
asyncio.sleep(0.3)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
CUL init done.
starting loop
Traceback (most recent call last):
File "cul2mqtt.py", line 702, in
loop.run_until_complete(culSAIO)
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
RuntimeError: cannot reuse already awaited coroutine

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.