You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bugUsing tag version 0.6.0 with support of ijai.vacuum.v3
when launfh command
miiocli viomivacuum --ip 192.168.1.100 --token get_rooms --map-id
i receive this error:
Running command get_rooms
ERROR:miio.click_common:Exception: string indices must be integers, not 'str'
Traceback (most recent call last):
File "/root/venv/lib/python3.11/site-packages/miio/click_common.py", line 55, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/venv/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/root/venv/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/venv/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/venv/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/venv/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/venv/lib/python3.11/site-packages/miio/click_common.py", line 306, in wrap
result = kwargs["result"] = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/root/venv/lib/python3.11/site-packages/click/decorators.py", line 92, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/venv/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/venv/lib/python3.11/site-packages/miio/click_common.py", line 271, in command_callback
return miio_command.call(miio_device, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/venv/lib/python3.11/site-packages/miio/click_common.py", line 219, in call
return method(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^
File "/root/venv/lib/python3.11/site-packages/miio/click_common.py", line 186, in _wrap
return func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/venv/lib/python3.11/site-packages/miio/integrations/viomi/vacuum/viomivacuum.py", line 998, in get_rooms
if map_id not in [m["id"] for m in maps]:
^^^^^^^^^^^^^^^^^^^^^^^
File "/root/venv/lib/python3.11/site-packages/miio/integrations/viomi/vacuum/viomivacuum.py", line 998, in
if map_id not in [m["id"] for m in maps]:
~^^^^^^
TypeError: string indices must be integers, not 'str'
Version information (please complete the following information):
OS: debian virtualenc
python-miio: miiocli, version 0.6.0.dev0
Device information:
If the issue is specific to a device [Use miiocli device --ip <ip address> --token <token> info]:
Model:
Hardware version:
Firmware version:
To Reproduce
Steps to reproduce the behavior:
1.
Expected behavior
A clear and concise description of what you expected to happen.
Console output
If applicable, add console output to help explain your problem.
If the issue is about communication with a specific device, consider including the output using the --debug flag.
The text was updated successfully, but these errors were encountered:
Describe the bugUsing tag version 0.6.0 with support of ijai.vacuum.v3
when launfh command
miiocli viomivacuum --ip 192.168.1.100 --token get_rooms --map-id
i receive this error:
Running command get_rooms
ERROR:miio.click_common:Exception: string indices must be integers, not 'str'
Traceback (most recent call last):
File "/root/venv/lib/python3.11/site-packages/miio/click_common.py", line 55, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/venv/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/root/venv/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/venv/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/venv/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/venv/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/venv/lib/python3.11/site-packages/miio/click_common.py", line 306, in wrap
result = kwargs["result"] = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/root/venv/lib/python3.11/site-packages/click/decorators.py", line 92, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/venv/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/venv/lib/python3.11/site-packages/miio/click_common.py", line 271, in command_callback
return miio_command.call(miio_device, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/venv/lib/python3.11/site-packages/miio/click_common.py", line 219, in call
return method(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^
File "/root/venv/lib/python3.11/site-packages/miio/click_common.py", line 186, in _wrap
return func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/venv/lib/python3.11/site-packages/miio/integrations/viomi/vacuum/viomivacuum.py", line 998, in get_rooms
if map_id not in [m["id"] for m in maps]:
^^^^^^^^^^^^^^^^^^^^^^^
File "/root/venv/lib/python3.11/site-packages/miio/integrations/viomi/vacuum/viomivacuum.py", line 998, in
if map_id not in [m["id"] for m in maps]:
~^^^^^^
TypeError: string indices must be integers, not 'str'
Version information (please complete the following information):
Device information:
If the issue is specific to a device [Use
miiocli device --ip <ip address> --token <token> info
]:To Reproduce
Steps to reproduce the behavior:
1.
Expected behavior
A clear and concise description of what you expected to happen.
Console output
If applicable, add console output to help explain your problem.
If the issue is about communication with a specific device, consider including the output using the
--debug
flag.The text was updated successfully, but these errors were encountered: