Skip to content

[BUG] - Map doesn`t update #59

@davidalben

Description

@davidalben

Describe the bug
Map doesn`t update.

Log entry

1st entry

Registrador: homeassistant.helpers.frame
Fonte: helpers/frame.py:324
Ocorreu pela primeira vez: 03:12:43 (2 ocorrências)
Último registro: 03:45:23

Detected that custom integration 'tuya_cloud_map_extractor' calls hass.async_create_task from a thread other than the event loop, which may cause Home Assistant to crash or data to corrupt. For more information, see https://developers.home-assistant.io/docs/asyncio_thread_safety/#hassasync_create_task at custom_components/tuya_cloud_map_extractor/camera.py, line 208: self.async_schedule_update_ha_state(True). Please report it to the author of the 'tuya_cloud_map_extractor' custom integration

2nd entry

Registrador: homeassistant.components.automation.roberto_disable_vacuum_camera_update_when_docked
Fonte: helpers/script.py:526
integração: Automação (documentação, problemas)
Ocorreu pela primeira vez: 03:12:43 (2 ocorrências)
Último registro: 03:45:23

Roberto - Disable vacuum camera update when docked: Error executing script. Unexpected error for call_service at pos 2: Detected that custom integration 'tuya_cloud_map_extractor' calls hass.async_create_task from a thread other than the event loop, which may cause Home Assistant to crash or data to corrupt. For more information, see https://developers.home-assistant.io/docs/asyncio_thread_safety/#hassasync_create_task at custom_components/tuya_cloud_map_extractor/camera.py, line 208: self.async_schedule_update_ha_state(True). Please report it to the author of the 'tuya_cloud_map_extractor' custom integration
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 526, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 764, in _async_call_service_step
response_data = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<9 lines>...
)
^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 727, in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2795, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2838, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1006, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
hass, entity, func, data, call.context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1078, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/camera/init.py", line 759, in async_turn_off
await self.hass.async_add_executor_job(self.turn_off)
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/camera.py", line 208, in turn_off
self.async_schedule_update_ha_state(True)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1277, in async_schedule_update_ha_state
self.hass.async_create_task(
~~~~~~~~~~~~~~~~~~~~~~~~~~~^
self.async_update_ha_state(force_refresh),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
f"Entity schedule update ha state {self.entity_id}",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
eager_start=True,
^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/core.py", line 809, in async_create_task
frame.report_non_thread_safe_operation("hass.async_create_task")
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 368, in report_non_thread_safe_operation
report(
~~~~~~^
f"calls {what} from a thread other than the event loop, "
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<5 lines>...
error_if_integration=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 164, in report
report_usage(
~~~~~~~~~~~~^
what,
^^^^^
...<4 lines>...
level=level,
^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 242, in report_usage
_report_integration_frame(
~~~~~~~~~~~~~~~~~~~~~~~~~^
what,
^^^^^
...<3 lines>...
integration_behavior is ReportBehavior.ERROR,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 340, in _report_integration_frame
raise RuntimeError(
...<5 lines>...
)
RuntimeError: Detected that custom integration 'tuya_cloud_map_extractor' calls hass.async_create_task from a thread other than the event loop, which may cause Home Assistant to crash or data to corrupt. For more information, see https://developers.home-assistant.io/docs/asyncio_thread_safety/#hassasync_create_task at custom_components/tuya_cloud_map_extractor/camera.py, line 208: self.async_schedule_update_ha_state(True). Please report it to the author of the 'tuya_cloud_map_extractor' custom integration

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