homebridge-mi-airpurifier
homebridge-mi-airpurifier copied to clipboard
typeError after update miio
After 'miio' updated, it's not work with follwoing message.
TypeError: miio.Device is not a constructor I solved this error But I have another error TypeError: that.device.call is not a function Please solve it
You can use 'npm install -g [email protected]' temporarily, then I'll think about a solution.
@YinHangCode The best way would be to set miio
under dependencies
in package.json
and lock it to the version you need. That way installing your plugin will automatically install the version of miio needed. 0.15.x will probably not be the last release to change APIs before miio reaches 1.0.0.
@aholstenson that's a good idea, thank you very much.