EXT.IO Unit ERROR problem

  • I have spent several hours trying to use an Extend IO Unit with M5Stack Fire (and also tried an M5Stack Grey) but when running any simple UIFlow code including the 'EXT.IO Unit' I get the error below. It looks like there is a bug in the 'import unit' library or am I missing something!
    Can someone please point me in the right direction?

    Python code:
    from m5stack import *
    from m5ui import *
    from uiflow import *
    import unit

    ext_io0 = unit.get(unit.EXT_IO, unit.PORTA)

    Error on M5Stack display:
    local variable referenced before assignment

    File "<string>", line 7, in <module>
    File "unit.py", line 97, in get
    File "<string>", line 1, in <module>
    File "units/_ext_io.py", line 20 in init
    File "units/_ext_io.py", line 25 in _available

  • M5Stack

    thank you feedback. we will fix this bug as soon as possible