python-miio icon indicating copy to clipboard operation
python-miio copied to clipboard

Error command miiocli roborockvacuum - File "<frozen runpy>", line 198, in _run_module_as_main and other

Open malahii opened this issue 6 months ago • 0 comments

Describe the bug
When running the command miiocli roborockvacuum --ip <IP> --token <TOKEN> get_room_mapping, a TypeError: argument of type 'bool' is not iterable occurs. The command fails despite correct connection parameters.

Version information:

  • OS: Windows 10/11
  • Python: 3.11.x
  • python-miio: [Provide output of pip show python-miio or miiocli --version]

Device information:
(Complete if you can retrieve data via info)

  • Model: Roborock (e.g., S5/S6/S7)
  • Hardware version:
  • Firmware version:

To Reproduce
Steps to reproduce the error:

  1. Install python-miio:
    pip install python-miio
    
    

Expected behavior Expected output: A list of rooms in JSON or similar format.

Console output: Traceback (most recent call last): File "", line 198, in _run_module_as_main ... File "miio\click_common.py", line 273, in get_command if cmd_name not in self.commands: TypeError: argument of type 'bool' is not iterable

malahii avatar Jun 14 '25 21:06 malahii