Skip to content

[BUG] - Map format not supported #68

Description

@kostinos

Describe the bug
Unsupported data type error messaging occurring when trying to setup device, following all instructions on the page.

To Reproduce
Steps to reproduce the behavior:

Follow instructions for new device setup as per here... https://github.com/oven-lab/tuya_cloud_map_extractor
After entering all parameters into Add Integration, error message saying check logs appears.
Review Logs, two entries showing a) Unsupported data type & b) Map version [21] is not supported.

Expected behavior
Vacuum would be setup for map related feature.

Version:

  • OS: [e.g. Home Assistant OS.]
  • Version [e.g. 2023.11.2]

Log entry

Эта ошибка возникла в пользовательской интеграции.

Регистратор: custom_components.tuya_cloud_map_extractor.config_flow
Источник: custom_components/tuya_cloud_map_extractor/config_flow.py:57
интеграция: tuya_cloud_map_extractor (документация, проблемы)
Зафиксировано первый раз: 16:28:29 (16 случаев)
Зафиксировано последний раз: 23:39:49

list index out of range
Traceback (most recent call last):
  File "/config/custom_components/tuya_cloud_map_extractor/config_flow.py", line 57, in async_step_user
    headers, image = await validate(self.hass, user_input)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/tuya_cloud_map_extractor/config_flow.py", line 214, in validate
    return await hass.async_add_executor_job(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<13 lines>...
    )
    ^
  File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/tuya_cloud_map_extractor/tuya_vacuum_map_extractor/main.py", line 131, in get_map
    raise e
  File "/config/custom_components/tuya_cloud_map_extractor/tuya_vacuum_map_extractor/main.py", line 127, in get_map
    map_link = link["result"][0]["map_url"]
               ~~~~~~~~~~~~~~^^^
IndexError: list index out of range
Эта ошибка возникла в пользовательской интеграции.

Регистратор: custom_components.tuya_cloud_map_extractor.tuya_vacuum_map_extractor.main
Источник: custom_components/tuya_cloud_map_extractor/tuya_vacuum_map_extractor/main.py:130
интеграция: tuya_cloud_map_extractor (документация, проблемы)
Зафиксировано первый раз: 16:28:29 (16 случаев)
Зафиксировано последний раз: 23:39:49

Encountered an error, please include the following data in your github issue: b'eyJyZXN1bHQiOiBbXSwgInN1Y2Nlc3MiOiB0cnVlLCAidCI6IDE3NTc5Njg3Nzc0OTgsICJ0aWQiOiAiMTg5Mzk3NDU5Mjc0MTFmMDgwNWQ5NmM4YjY2MjQ3YjcifQ=='
Encountered an error, please include the following data in your github issue: b'eyJyZXN1bHQiOiBbXSwgInN1Y2Nlc3MiOiB0cnVlLCAidCI6IDE3NTc5Njg3ODM4MTgsICJ0aWQiOiAiMWM1N2I2YjI5Mjc0MTFmMDhlNWRkYTU3ZThmNWQwZWQifQ=='
Encountered an error, please include the following data in your github issue: b'eyJyZXN1bHQiOiBbXSwgInN1Y2Nlc3MiOiB0cnVlLCAidCI6IDE3NTc5Njg3ODU1OTgsICJ0aWQiOiAiMWQ2NzcyOTU5Mjc0MTFmMGEyNWU5ZWQyODBhNDBmMzkifQ=='
Encountered an error, please include the following data in your github issue: b'eyJyZXN1bHQiOiBbXSwgInN1Y2Nlc3MiOiB0cnVlLCAidCI6IDE3NTc5Njg3ODc0MDgsICJ0aWQiOiAiMWU3YmMyMmQ5Mjc0MTFmMDgwNWQ5NmM4YjY2MjQ3YjcifQ=='
Encountered an error, please include the following data in your github issue: b'eyJyZXN1bHQiOiBbXSwgInN1Y2Nlc3MiOiB0cnVlLCAidCI6IDE3NTc5Njg3ODkzNzYsICJ0aWQiOiAiMWZhN2E1ZGY5Mjc0MTFmMGEyNWU5ZWQyODBhNDBmMzkifQ=='

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions