Open Charlizsz opened 6 years ago
I was getting the same error because I was doing "miio --discover" instead of "miio discover"… it's working now.
If the problem appears in an angular application the problem is that you are running the wrong command.Open the package.json file and check the commands.
When I input anything about miio, it would send me the error about this "Not enough non-option arguments: got 0, need at least 1"
miio
Commands: miio configure Control a device by invoking the
given method
miio control Control a device by invoking the
[params..] given method
miio discover Discover devices on the local
network
miio inspect Inspect a device
miio protocol Inspect and test raw miIO-commands
miio tokens Manage tokens of devices
Options: --help Show help [boolean] --version Show version number [boolean]
Not enough non-option arguments: got 0, need at least 1