Skip to content

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

@malahii

Description

@malahii

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions