This has only been fixed for now in the git version of python-miio (https://github.com/rytilahti/python-miio/pull/192), for the time being you can manually downgrade construct package to version 2.9.22 (pip install construct==2.9.22) or wait until a fixed version gets released later on.