qqaatw / JciHitachiHA

A home assistant integration for controlling Jci-Hitachi devices, using LibJciHitachi backend. 台灣日立雲端模組
Apache License 2.0
108 stars 31 forks source link

Seems after upadting to HA Core 2024.5.0 , call service on Hitachi Climate Entity will bring up error message #76

Closed gabrel1201 closed 2 months ago

gabrel1201 commented 2 months ago

🐛 Describe the bug

Seems after upadting to HA Core 2024.5.0 , call service on Hitachi Climate Entity will bring up error message . (didn't encounter this problem before , until upadting to HA Core 2024.5.0 this moring ) .

error messgae as below:

服務 climate/set_temperature 執行失敗。 Detected that custom integration 'jcihitachi_tw' calls async_write_ha_state from a thread at custom_components/jcihitachi_tw/init.py, line 246: self.coordinator.async_set_updated_data(None). Please report it to the author of the 'jcihitachi_tw' custom integration.

Environment Information

screenshoot

Core : 2024.5.0 Supervisor : 2024.04.4 Operating System : 12.2 Device : RaspberryPi 4b

qqaatw commented 2 months ago

Can you paste all the related error messages in the log?

gabrel1201 commented 2 months ago

Below is the what I copied from system log , not sure if it's what you wanted , feel free to let me know if any question , thanx .

2024-05-03 08:53:46.486 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration nodered which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-05-03 08:53:46.489 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration ical which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-05-03 08:53:46.491 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration mass which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-05-03 08:53:46.492 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration jcihitachi_tw which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-05-03 08:53:46.494 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration mqtt_discoverystream which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-05-03 08:53:46.496 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration xiaomi_miot which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-05-03 08:53:46.497 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration radarr_upcoming_media which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-05-03 08:53:46.499 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration tapo which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-05-03 08:53:46.501 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration ai_thermostat which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-05-03 08:53:46.502 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration hass_agent which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-05-03 08:53:46.504 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration line_bot which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-05-03 08:53:46.506 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration alarmo which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-05-03 08:53:46.508 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-05-03 08:53:46.510 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration fontawesome which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-05-03 08:53:46.512 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration retry which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-05-03 08:53:46.514 WARNING (SyncWorker_4) [homeassistant.loader] We found a custom integration watchman which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2024-05-03 08:53:48.055 ERROR (MainThread) [homeassistant.components.hassio.handler] Client error on /addons/cebe7a76_hassio_google_drive_backup/changelog request 0, message='Attempt to decode JSON with unexpected mimetype: application/octet-stream', url=URL('http://172.30.32.2/addons/cebe7a76_hassio_google_drive_backup/changelog') 2024-05-03 08:53:48.056 WARNING (MainThread) [homeassistant.components.hassio.data] Could not fetch changelog for cebe7a76_hassio_google_drive_backup: 2024-05-03 08:53:49.434 WARNING (MainThread) [homeassistant.helpers.config_validation] The 'entity_id' option near /config/sensor.yaml:60 is deprecated, please remove it from your configuration 2024-05-03 08:53:58.926 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.components.frontend. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to import functions used from frontend directly at custom_components/hacs/frontend.py, line 68: hass.components.frontend.async_register_built_in_panel(, please create a bug report at https://github.com/hacs/integration/issues 2024-05-03 08:53:59.820 WARNING (ImportExecutor_0) [homeassistant.helpers.typing] HomeAssistantType was used from watchman, this is a deprecated alias which will be removed in HA Core 2025.5. Use homeassistant.core.HomeAssistant instead, please report it to the author of the 'watchman' custom integration 2024-05-03 08:54:11.132 WARNING (SyncWorker_5) [homeassistant.helpers.frame] Detected that custom integration 'hass_agent' calls async_create_task from a thread at custom_components/hass_agent/init.py, line 147: hass.async_create_task(handle_apis_changed(hass, entry, apis)), please report it to the author of the 'hass_agent' custom integration 2024-05-03 08:54:11.552 ERROR (MainThread) [custom_components.tapo.coordinators] Tapo exception: Returned unknown error_code: -1402 msg: curr ver:1.4.1 Build 20231103 Rel. 36519, cloud ver:. 2024-05-03 08:54:11.556 ERROR (MainThread) [custom_components.tapo.coordinators] Error fetching tapo data: Error tapo exception: Returned unknown error_code: -1402 msg: curr ver:1.4.1 Build 20231103 Rel. 36519, cloud ver:. 2024-05-03 08:54:12.335 ERROR (MainThread) [homeassistant.components.hassio.handler] Client error on /addons/cebe7a76_hassio_google_drive_backup/changelog request 0, message='Attempt to decode JSON with unexpected mimetype: application/octet-stream', url=URL('http://172.30.32.2/addons/cebe7a76_hassio_google_drive_backup/changelog') 2024-05-03 08:54:12.335 WARNING (MainThread) [homeassistant.components.hassio.data] Could not fetch changelog for cebe7a76_hassio_google_drive_backup: 2024-05-03 08:54:14.411 ERROR (SyncWorker_5) [homeassistant.util.logging] Exception in updated when handling msg on 'hass.agent/devices/GABRIEL-INTEL-N': '{"serial_number":"de16fa55-15e1-4f93-a35d-eca35c57e402","device":{"identifiers":"hass.agent-GABRIEL-INTEL-N","manufacturer":"LAB02 Research","model":"Microsoft Windows NT 10.0.22631.0","name":"GABRIEL-INTEL-N","sw_version":"2022.14.0"},"apis":{"notifications":true,"media_player":true}}' Traceback (most recent call last): File "/config/custom_components/hass_agent/init.py", line 147, in updated hass.async_create_task(handle_apis_changed(hass, entry, apis)) File "/usr/src/homeassistant/homeassistant/core.py", line 816, in async_create_task self.verify_event_loop_thread("async_create_task") File "/usr/src/homeassistant/homeassistant/core.py", line 440, in verify_event_loop_thread frame.report( File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 162, in report _report_integration(what, integration_frame, level, error_if_integration) File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 203, in _report_integration raise RuntimeError( RuntimeError: Detected that custom integration 'hass_agent' calls async_create_task from a thread at custom_components/hass_agent/init.py, line 147: hass.async_create_task(handle_apis_changed(hass, entry, apis)). Please report it to the author of the 'hass_agent' custom integration.

2024-05-03 08:54:14.411 WARNING (SyncWorker_5) [py.warnings] /usr/src/homeassistant/homeassistant/util/logging.py:120: RuntimeWarning: coroutine 'handle_apis_changed' was never awaited log_exception(format_err, *args)

2024-05-03 08:54:16.129 WARNING (ImportExecutor_0) [homeassistant.components.fan] SUPPORT_PRESET_MODE was used from jcihitachi_tw, this is a deprecated constant which will be removed in HA Core 2025.1. Use FanEntityFeature.PRESET_MODE instead, please report it to the author of the 'jcihitachi_tw' custom integration 2024-05-03 08:54:16.144 WARNING (ImportExecutor_0) [homeassistant.components.fan] SUPPORT_SET_SPEED was used from jcihitachi_tw, this is a deprecated constant which will be removed in HA Core 2025.1. Use FanEntityFeature.SET_SPEED instead, please report it to the author of the 'jcihitachi_tw' custom integration 2024-05-03 08:54:16.163 WARNING (ImportExecutor_0) [homeassistant.components.fan] SUPPORT_PRESET_MODE was used from jcihitachi_tw, this is a deprecated constant which will be removed in HA Core 2025.1. Use FanEntityFeature.PRESET_MODE instead, please report it to the author of the 'jcihitachi_tw' custom integration 2024-05-03 08:54:16.177 WARNING (ImportExecutor_0) [homeassistant.components.fan] SUPPORT_SET_SPEED was used from jcihitachi_tw, this is a deprecated constant which will be removed in HA Core 2025.1. Use FanEntityFeature.SET_SPEED instead, please report it to the author of the 'jcihitachi_tw' custom integration 2024-05-03 08:54:16.186 WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.jcihitachi_tw.climate.JciHitachiClimateEntity'>) does not set ClimateEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/qqaatw/JciHitachiHA/issues 2024-05-03 08:54:16.188 WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.jcihitachi_tw.climate.JciHitachiClimateEntity'>) implements HVACMode(s): off, cool, dry, fan_only, auto, heat and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please create a bug report at https://github.com/qqaatw/JciHitachiHA/issues 2024-05-03 08:54:17.859 WARNING (MainThread) [aioesphomeapi.reconnect_logic] Can't connect to ESPHome API for atom-echo @ 192.168.0.107: Error connecting to [AddrInfo(family=<AddressFamily.AF_INET: 2>, type=<SocketKind.SOCK_STREAM: 1>, proto=6, sockaddr=IPv4Sockaddr(address='192.168.0.107', port=6053))]: [Errno 111] Connect call failed ('192.168.0.107', 6053) (SocketAPIError) 2024-05-03 08:54:20.465 WARNING (MainThread) [custom_components.xiaomi_miot.sensor] Get xiaomi scene history for 6616090348 145001084369 failed: {'code': 0, 'message': '成功', 'result': {'history': []}} 2024-05-03 08:54:25.014 WARNING (MainThread) [zigpy.application] Zigbee channel 20 utilization is 97.65%! 2024-05-03 08:54:25.015 WARNING (MainThread) [zigpy.application] If you are having problems joining new devices, are missing sensor updates, or have issues keeping devices joined, ensure your coordinator is away from interference sources such as USB 3.0 devices, SSDs, WiFi routers, etc. 2024-05-03 08:54:47.817 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: {('qbittorrent', '65b62957956a61c523193afb39bd6b41'): 1849152.037253614} 2024-05-03 08:55:23.591 ERROR (MainThread) [zigpy.zcl] [0x9E21:1:0x0020] Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/zigpy/endpoint.py", line 265, in request return await self.device.request( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/zigpy/device.py", line 339, in request await send_request() File "/usr/local/lib/python3.12/site-packages/zigpy/application.py", line 841, in request await self.send_packet( File "/usr/local/lib/python3.12/site-packages/zigpy_deconz/zigbee/application.py", line 530, in send_packet raise zigpy.exceptions.DeliveryError( zigpy.exceptions.DeliveryError: Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/general.py", line 631, in check_in_response await self.checkin_response(True, self.CHECKIN_FAST_POLL_TIMEOUT, tsn=tsn) File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/init.py", line 83, in wrapper with wrap_zigpy_exceptions(): File "/usr/local/lib/python3.12/contextlib.py", line 158, in exit self.gen.throw(value) File "/usr/src/homeassistant/homeassistant/components/zha/core/cluster_handlers/init.py", line 75, in wrap_zigpy_exceptions raise HomeAssistantError(message) from exc homeassistant.exceptions.HomeAssistantError: Failed to send request: Failed to deliver packet: <TXStatus.NWK_ROUTE_DISCOVERY_FAILED: 208>

2024-05-03 08:55:48.194 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: {('qbittorrent', '65b62957956a61c523193afb39bd6b41'): 1849152.037253614} 2024-05-03 08:56:05.790 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' accesses hass.helpers.event. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from event directly at custom_components/hacs/base.py, line 642: self.hass.helpers.event.async_track_time_interval(, please create a bug report at https://github.com/hacs/integration/issues 2024-05-03 08:56:06.315 WARNING (MainThread) [custom_components.hacs] You have 'AitorDB/home-assistant-sun-card' installed with HACS this repository has been removed from HACS, please consider removing it. Removal reason (Repository is archived) 2024-05-03 08:56:17.504 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.openweathermap_rain (mm/h) cannot be converted to the unit of previously compiled statistics (mm). Generation of long term statistics will be suppressed unless the unit changes back to mm or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this 2024-05-03 08:56:17.506 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.openweathermap_snow (mm/h) cannot be converted to the unit of previously compiled statistics (mm). Generation of long term statistics will be suppressed unless the unit changes back to mm or a compatible unit. Go to https://my.home-assistant.io/redirect/developer_statistics to fix this 2024-05-03 08:59:14.404 ERROR (MainThread) [homeassistant.components.hassio.handler] Client error on /addons/cebe7a76_hassio_google_drive_backup/changelog request 0, message='Attempt to decode JSON with unexpected mimetype: application/octet-stream', url=URL('http://172.30.32.2/addons/cebe7a76_hassio_google_drive_backup/changelog') 2024-05-03 08:59:14.404 WARNING (MainThread) [homeassistant.components.hassio.data] Could not fetch changelog for cebe7a76_hassio_google_drive_backup: 2024-05-03 09:00:00.430 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities button.gabriel_galaxy_s9_load_start_url are missing or not currently available 2024-05-03 09:01:59.007 ERROR (MainThread) [homeassistant.components.mqtt.models] Exception raised when updating state of sensor.gabe1201_desktop_battery_level, topic: 'iotlink/workgroup/gabriel-intel-n/windows-monitor/stats/battery/level' with payload: b'NoSystemBattery' Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 663, in state numerical_value = float(value) # type:ignore[arg-type] ^^^^^^^^^^^^ ValueError: could not convert string to float: 'NoSystemBattery'

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/mqtt/models.py", line 378, in process_write_state_requests entity.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1009, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1132, in _async_write_ha_state state, attr, capabilities, shadowed_attr = self.async_calculate_state() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1067, in async_calculate_state state = self._stringify_state(available) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1015, in _stringify_state if (state := self.state) is None: ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/sensor/init.py", line 665, in state raise ValueError( ValueError: Sensor sensor.gabe1201_desktop_battery_level has device class 'battery', state class 'None' unit 'None' and suggested precision 'None' thus indicating it has a numeric value; however, it has the non-numeric value: 'NoSystemBattery' (<class 'str'>) 2024-05-03 09:02:24.281 WARNING (SyncWorker_7) [homeassistant.helpers.frame] Detected that custom integration 'hass_agent' calls async_create_task from a thread at custom_components/hass_agent/init.py, line 147: hass.async_create_task(handle_apis_changed(hass, entry, apis)), please report it to the author of the 'hass_agent' custom integration 2024-05-03 09:02:24.287 ERROR (SyncWorker_7) [homeassistant.util.logging] Exception in updated when handling msg on 'hass.agent/devices/GABRIEL-INTEL-N': '{"serial_number":"de16fa55-15e1-4f93-a35d-eca35c57e402","device":{"identifiers":"hass.agent-GABRIEL-INTEL-N","manufacturer":"LAB02 Research","model":"Microsoft Windows NT 10.0.22631.0","name":"GABRIEL-INTEL-N","sw_version":"2022.14.0"},"apis":{"notifications":true,"media_player":true}}' Traceback (most recent call last): File "/config/custom_components/hass_agent/init.py", line 147, in updated hass.async_create_task(handle_apis_changed(hass, entry, apis)) File "/usr/src/homeassistant/homeassistant/core.py", line 816, in async_create_task self.verify_event_loop_thread("async_create_task") File "/usr/src/homeassistant/homeassistant/core.py", line 440, in verify_event_loop_thread frame.report( File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 162, in report _report_integration(what, integration_frame, level, error_if_integration) File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 203, in _report_integration raise RuntimeError( RuntimeError: Detected that custom integration 'hass_agent' calls async_create_task from a thread at custom_components/hass_agent/init.py, line 147: hass.async_create_task(handle_apis_changed(hass, entry, apis)). Please report it to the author of the 'hass_agent' custom integration.

2024-05-03 09:02:24.288 WARNING (SyncWorker_7) [py.warnings] /usr/src/homeassistant/homeassistant/util/logging.py:120: RuntimeWarning: coroutine 'handle_apis_changed' was never awaited log_exception(format_err, *args)

2024-05-03 09:02:54.465 WARNING (SyncWorker_12) [homeassistant.helpers.frame] Detected that custom integration 'hass_agent' calls async_create_task from a thread at custom_components/hass_agent/init.py, line 147: hass.async_create_task(handle_apis_changed(hass, entry, apis)), please report it to the author of the 'hass_agent' custom integration 2024-05-03 09:02:54.472 ERROR (SyncWorker_12) [homeassistant.util.logging] Exception in updated when handling msg on 'hass.agent/devices/GABRIEL-INTEL-N': '{"serial_number":"de16fa55-15e1-4f93-a35d-eca35c57e402","device":{"identifiers":"hass.agent-GABRIEL-INTEL-N","manufacturer":"LAB02 Research","model":"Microsoft Windows NT 10.0.22631.0","name":"GABRIEL-INTEL-N","sw_version":"2022.14.0"},"apis":{"notifications":true,"media_player":true}}' Traceback (most recent call last): File "/config/custom_components/hass_agent/init.py", line 147, in updated hass.async_create_task(handle_apis_changed(hass, entry, apis)) File "/usr/src/homeassistant/homeassistant/core.py", line 816, in async_create_task self.verify_event_loop_thread("async_create_task") File "/usr/src/homeassistant/homeassistant/core.py", line 440, in verify_event_loop_thread frame.report( File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 162, in report _report_integration(what, integration_frame, level, error_if_integration) File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 203, in _report_integration raise RuntimeError( RuntimeError: Detected that custom integration 'hass_agent' calls async_create_task from a thread at custom_components/hass_agent/init.py, line 147: hass.async_create_task(handle_apis_changed(hass, entry, apis)). Please report it to the author of the 'hass_agent' custom integration.

2024-05-03 09:02:54.473 WARNING (SyncWorker_12) [py.warnings] /usr/src/homeassistant/homeassistant/util/logging.py:120: RuntimeWarning: coroutine 'handle_apis_changed' was never awaited log_exception(format_err, *args)

2024-05-03 09:03:24.484 WARNING (SyncWorker_19) [homeassistant.helpers.frame] Detected that custom integration 'hass_agent' calls async_create_task from a thread at custom_components/hass_agent/init.py, line 147: hass.async_create_task(handle_apis_changed(hass, entry, apis)), please report it to the author of the 'hass_agent' custom integration 2024-05-03 09:03:24.493 ERROR (SyncWorker_19) [homeassistant.util.logging] Exception in updated when handling msg on 'hass.agent/devices/GABRIEL-INTEL-N': '{"serial_number":"de16fa55-15e1-4f93-a35d-eca35c57e402","device":{"identifiers":"hass.agent-GABRIEL-INTEL-N","manufacturer":"LAB02 Research","model":"Microsoft Windows NT 10.0.22631.0","name":"GABRIEL-INTEL-N","sw_version":"2022.14.0"},"apis":{"notifications":true,"media_player":true}}' Traceback (most recent call last): File "/config/custom_components/hass_agent/init.py", line 147, in updated hass.async_create_task(handle_apis_changed(hass, entry, apis)) File "/usr/src/homeassistant/homeassistant/core.py", line 816, in async_create_task self.verify_event_loop_thread("async_create_task") File "/usr/src/homeassistant/homeassistant/core.py", line 440, in verify_event_loop_thread frame.report( File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 162, in report _report_integration(what, integration_frame, level, error_if_integration) File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 203, in _report_integration raise RuntimeError( RuntimeError: Detected that custom integration 'hass_agent' calls async_create_task from a thread at custom_components/hass_agent/init.py, line 147: hass.async_create_task(handle_apis_changed(hass, entry, apis)). Please report it to the author of the 'hass_agent' custom integration.

2024-05-03 09:03:24.494 WARNING (SyncWorker_19) [py.warnings] /usr/src/homeassistant/homeassistant/util/logging.py:120: RuntimeWarning: coroutine 'handle_apis_changed' was never awaited log_exception(format_err, *args)

2024-05-03 09:03:33.306 WARNING (SyncWorker_14) [homeassistant.helpers.frame] Detected that custom integration 'jcihitachi_tw' calls async_write_ha_state from a thread at custom_components/jcihitachi_tw/init.py, line 246: self.coordinator.async_set_updated_data(None), please report it to the author of the 'jcihitachi_tw' custom integration 2024-05-03 09:03:33.308 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547074807872] Unexpected exception Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 239, in handle_call_service response = await hass.services.async_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2738, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2779, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 975, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1047, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 729, in async_handle_set_fan_mode_service await self.async_set_fan_mode(fan_mode) File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 737, in async_set_fan_mode await self.hass.async_add_executor_job(self.set_fan_mode, fan_mode) File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/jcihitachi_tw/climate.py", line 361, in set_fan_mode self.update() File "/config/custom_components/jcihitachi_tw/init.py", line 246, in update self.coordinator.async_set_updated_data(None) File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 450, in async_set_updated_data self.async_update_listeners() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 168, in async_update_listeners update_callback() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 492, in _handle_coordinator_update self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1008, in async_write_ha_state self.hass.verify_event_loop_thread("async_write_ha_state") File "/usr/src/homeassistant/homeassistant/core.py", line 440, in verify_event_loop_thread frame.report( File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 162, in report _report_integration(what, integration_frame, level, error_if_integration) File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 203, in _report_integration raise RuntimeError( RuntimeError: Detected that custom integration 'jcihitachi_tw' calls async_write_ha_state from a thread at custom_components/jcihitachi_tw/init.py, line 246: self.coordinator.async_set_updated_data(None). Please report it to the author of the 'jcihitachi_tw' custom integration. 2024-05-03 09:03:54.510 WARNING (SyncWorker_11) [homeassistant.helpers.frame] Detected that custom integration 'hass_agent' calls async_create_task from a thread at custom_components/hass_agent/init.py, line 147: hass.async_create_task(handle_apis_changed(hass, entry, apis)), please report it to the author of the 'hass_agent' custom integration 2024-05-03 09:03:54.518 ERROR (SyncWorker_11) [homeassistant.util.logging] Exception in updated when handling msg on 'hass.agent/devices/GABRIEL-INTEL-N': '{"serial_number":"de16fa55-15e1-4f93-a35d-eca35c57e402","device":{"identifiers":"hass.agent-GABRIEL-INTEL-N","manufacturer":"LAB02 Research","model":"Microsoft Windows NT 10.0.22631.0","name":"GABRIEL-INTEL-N","sw_version":"2022.14.0"},"apis":{"notifications":true,"media_player":true}}' Traceback (most recent call last): File "/config/custom_components/hass_agent/init.py", line 147, in updated hass.async_create_task(handle_apis_changed(hass, entry, apis)) File "/usr/src/homeassistant/homeassistant/core.py", line 816, in async_create_task self.verify_event_loop_thread("async_create_task") File "/usr/src/homeassistant/homeassistant/core.py", line 440, in verify_event_loop_thread frame.report( File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 162, in report _report_integration(what, integration_frame, level, error_if_integration) File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 203, in _report_integration raise RuntimeError( RuntimeError: Detected that custom integration 'hass_agent' calls async_create_task from a thread at custom_components/hass_agent/init.py, line 147: hass.async_create_task(handle_apis_changed(hass, entry, apis)). Please report it to the author of the 'hass_agent' custom integration.

2024-05-03 09:03:54.519 WARNING (SyncWorker_11) [py.warnings] /usr/src/homeassistant/homeassistant/util/logging.py:120: RuntimeWarning: coroutine 'handle_apis_changed' was never awaited log_exception(format_err, *args)

2024-05-03 09:04:16.400 ERROR (MainThread) [homeassistant.components.hassio.handler] Client error on /addons/cebe7a76_hassio_google_drive_backup/changelog request 0, message='Attempt to decode JSON with unexpected mimetype: application/octet-stream', url=URL('http://172.30.32.2/addons/cebe7a76_hassio_google_drive_backup/changelog') 2024-05-03 09:04:16.401 WARNING (MainThread) [homeassistant.components.hassio.data] Could not fetch changelog for cebe7a76_hassio_google_drive_backup: 2024-05-03 09:04:24.507 WARNING (SyncWorker_13) [homeassistant.helpers.frame] Detected that custom integration 'hass_agent' calls async_create_task from a thread at custom_components/hass_agent/init.py, line 147: hass.async_create_task(handle_apis_changed(hass, entry, apis)), please report it to the author of the 'hass_agent' custom integration 2024-05-03 09:04:24.516 ERROR (SyncWorker_13) [homeassistant.util.logging] Exception in updated when handling msg on 'hass.agent/devices/GABRIEL-INTEL-N': '{"serial_number":"de16fa55-15e1-4f93-a35d-eca35c57e402","device":{"identifiers":"hass.agent-GABRIEL-INTEL-N","manufacturer":"LAB02 Research","model":"Microsoft Windows NT 10.0.22631.0","name":"GABRIEL-INTEL-N","sw_version":"2022.14.0"},"apis":{"notifications":true,"media_player":true}}' Traceback (most recent call last): File "/config/custom_components/hass_agent/init.py", line 147, in updated hass.async_create_task(handle_apis_changed(hass, entry, apis)) File "/usr/src/homeassistant/homeassistant/core.py", line 816, in async_create_task self.verify_event_loop_thread("async_create_task") File "/usr/src/homeassistant/homeassistant/core.py", line 440, in verify_event_loop_thread frame.report( File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 162, in report _report_integration(what, integration_frame, level, error_if_integration) File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 203, in _report_integration raise RuntimeError( RuntimeError: Detected that custom integration 'hass_agent' calls async_create_task from a thread at custom_components/hass_agent/init.py, line 147: hass.async_create_task(handle_apis_changed(hass, entry, apis)). Please report it to the author of the 'hass_agent' custom integration.

2024-05-03 09:04:24.517 WARNING (SyncWorker_13) [py.warnings] /usr/src/homeassistant/homeassistant/util/logging.py:120: RuntimeWarning: coroutine 'handle_apis_changed' was never awaited log_exception(format_err, *args)

2024-05-03 09:04:54.516 WARNING (SyncWorker_12) [homeassistant.helpers.frame] Detected that custom integration 'hass_agent' calls async_create_task from a thread at custom_components/hass_agent/init.py, line 147: hass.async_create_task(handle_apis_changed(hass, entry, apis)), please report it to the author of the 'hass_agent' custom integration 2024-05-03 09:04:54.523 ERROR (SyncWorker_12) [homeassistant.util.logging] Exception in updated when handling msg on 'hass.agent/devices/GABRIEL-INTEL-N': '{"serial_number":"de16fa55-15e1-4f93-a35d-eca35c57e402","device":{"identifiers":"hass.agent-GABRIEL-INTEL-N","manufacturer":"LAB02 Research","model":"Microsoft Windows NT 10.0.22631.0","name":"GABRIEL-INTEL-N","sw_version":"2022.14.0"},"apis":{"notifications":true,"media_player":true}}' Traceback (most recent call last): File "/config/custom_components/hass_agent/init.py", line 147, in updated hass.async_create_task(handle_apis_changed(hass, entry, apis)) File "/usr/src/homeassistant/homeassistant/core.py", line 816, in async_create_task self.verify_event_loop_thread("async_create_task") File "/usr/src/homeassistant/homeassistant/core.py", line 440, in verify_event_loop_thread frame.report( File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 162, in report _report_integration(what, integration_frame, level, error_if_integration) File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 203, in _report_integration raise RuntimeError( RuntimeError: Detected that custom integration 'hass_agent' calls async_create_task from a thread at custom_components/hass_agent/init.py, line 147: hass.async_create_task(handle_apis_changed(hass, entry, apis)). Please report it to the author of the 'hass_agent' custom integration.

2024-05-03 09:04:54.524 WARNING (SyncWorker_12) [py.warnings] /usr/src/homeassistant/homeassistant/util/logging.py:120: RuntimeWarning: coroutine 'handle_apis_changed' was never awaited log_exception(format_err, *args)

2024-05-03 09:05:24.525 WARNING (SyncWorker_21) [homeassistant.helpers.frame] Detected that custom integration 'hass_agent' calls async_create_task from a thread at custom_components/hass_agent/init.py, line 147: hass.async_create_task(handle_apis_changed(hass, entry, apis)), please report it to the author of the 'hass_agent' custom integration 2024-05-03 09:05:24.534 ERROR (SyncWorker_21) [homeassistant.util.logging] Exception in updated when handling msg on 'hass.agent/devices/GABRIEL-INTEL-N': '{"serial_number":"de16fa55-15e1-4f93-a35d-eca35c57e402","device":{"identifiers":"hass.agent-GABRIEL-INTEL-N","manufacturer":"LAB02 Research","model":"Microsoft Windows NT 10.0.22631.0","name":"GABRIEL-INTEL-N","sw_version":"2022.14.0"},"apis":{"notifications":true,"media_player":true}}' Traceback (most recent call last): File "/config/custom_components/hass_agent/init.py", line 147, in updated hass.async_create_task(handle_apis_changed(hass, entry, apis)) File "/usr/src/homeassistant/homeassistant/core.py", line 816, in async_create_task self.verify_event_loop_thread("async_create_task") File "/usr/src/homeassistant/homeassistant/core.py", line 440, in verify_event_loop_thread frame.report( File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 162, in report _report_integration(what, integration_frame, level, error_if_integration) File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 203, in _report_integration raise RuntimeError( RuntimeError: Detected that custom integration 'hass_agent' calls async_create_task from a thread at custom_components/hass_agent/init.py, line 147: hass.async_create_task(handle_apis_changed(hass, entry, apis)). Please report it to the author of the 'hass_agent' custom integration.

2024-05-03 09:05:24.534 WARNING (SyncWorker_21) [py.warnings] /usr/src/homeassistant/homeassistant/util/logging.py:120: RuntimeWarning: coroutine 'handle_apis_changed' was never awaited log_exception(format_err, *args)

2024-05-03 09:05:31.641 WARNING (SyncWorker_13) [homeassistant.helpers.frame] Detected that custom integration 'jcihitachi_tw' calls async_write_ha_state from a thread at custom_components/jcihitachi_tw/init.py, line 246: self.coordinator.async_set_updated_data(None), please report it to the author of the 'jcihitachi_tw' custom integration 2024-05-03 09:05:31.643 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547074014400] Unexpected exception Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 239, in handle_call_service response = await hass.services.async_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2738, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2779, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 975, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1047, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 729, in async_handle_set_fan_mode_service await self.async_set_fan_mode(fan_mode) File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 737, in async_set_fan_mode await self.hass.async_add_executor_job(self.set_fan_mode, fan_mode) File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/jcihitachi_tw/climate.py", line 361, in set_fan_mode self.update() File "/config/custom_components/jcihitachi_tw/init.py", line 246, in update self.coordinator.async_set_updated_data(None) File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 450, in async_set_updated_data self.async_update_listeners() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 168, in async_update_listeners update_callback() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 492, in _handle_coordinator_update self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1008, in async_write_ha_state self.hass.verify_event_loop_thread("async_write_ha_state") File "/usr/src/homeassistant/homeassistant/core.py", line 440, in verify_event_loop_thread frame.report( File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 162, in report _report_integration(what, integration_frame, level, error_if_integration) File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 203, in _report_integration raise RuntimeError( RuntimeError: Detected that custom integration 'jcihitachi_tw' calls async_write_ha_state from a thread at custom_components/jcihitachi_tw/init.py, line 246: self.coordinator.async_set_updated_data(None). Please report it to the author of the 'jcihitachi_tw' custom integration. 2024-05-03 09:05:54.543 WARNING (SyncWorker_15) [homeassistant.helpers.frame] Detected that custom integration 'hass_agent' calls async_create_task from a thread at custom_components/hass_agent/init.py, line 147: hass.async_create_task(handle_apis_changed(hass, entry, apis)), please report it to the author of the 'hass_agent' custom integration 2024-05-03 09:05:54.554 ERROR (SyncWorker_15) [homeassistant.util.logging] Exception in updated when handling msg on 'hass.agent/devices/GABRIEL-INTEL-N': '{"serial_number":"de16fa55-15e1-4f93-a35d-eca35c57e402","device":{"identifiers":"hass.agent-GABRIEL-INTEL-N","manufacturer":"LAB02 Research","model":"Microsoft Windows NT 10.0.22631.0","name":"GABRIEL-INTEL-N","sw_version":"2022.14.0"},"apis":{"notifications":true,"media_player":true}}' Traceback (most recent call last): File "/config/custom_components/hass_agent/init.py", line 147, in updated hass.async_create_task(handle_apis_changed(hass, entry, apis)) File "/usr/src/homeassistant/homeassistant/core.py", line 816, in async_create_task self.verify_event_loop_thread("async_create_task") File "/usr/src/homeassistant/homeassistant/core.py", line 440, in verify_event_loop_thread frame.report( File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 162, in report _report_integration(what, integration_frame, level, error_if_integration) File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 203, in _report_integration raise RuntimeError( RuntimeError: Detected that custom integration 'hass_agent' calls async_create_task from a thread at custom_components/hass_agent/init.py, line 147: hass.async_create_task(handle_apis_changed(hass, entry, apis)). Please report it to the author of the 'hass_agent' custom integration.

2024-05-03 09:05:54.555 WARNING (SyncWorker_15) [py.warnings] /usr/src/homeassistant/homeassistant/util/logging.py:120: RuntimeWarning: coroutine 'handle_apis_changed' was never awaited log_exception(format_err, *args)

2024-05-03 09:06:27.140 WARNING (SyncWorker_3) [homeassistant.helpers.frame] Detected that custom integration 'jcihitachi_tw' calls async_write_ha_state from a thread at custom_components/jcihitachi_tw/init.py, line 246: self.coordinator.async_set_updated_data(None), please report it to the author of the 'jcihitachi_tw' custom integration 2024-05-03 09:06:27.142 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547074014400] Unexpected exception Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 239, in handle_call_service response = await hass.services.async_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2738, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2779, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 975, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1047, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 729, in async_handle_set_fan_mode_service await self.async_set_fan_mode(fan_mode) File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 737, in async_set_fan_mode await self.hass.async_add_executor_job(self.set_fan_mode, fan_mode) File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/jcihitachi_tw/climate.py", line 361, in set_fan_mode self.update() File "/config/custom_components/jcihitachi_tw/init.py", line 246, in update self.coordinator.async_set_updated_data(None) File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 450, in async_set_updated_data self.async_update_listeners() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 168, in async_update_listeners update_callback() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 492, in _handle_coordinator_update self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1008, in async_write_ha_state self.hass.verify_event_loop_thread("async_write_ha_state") File "/usr/src/homeassistant/homeassistant/core.py", line 440, in verify_event_loop_thread frame.report( File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 162, in report _report_integration(what, integration_frame, level, error_if_integration) File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 203, in _report_integration raise RuntimeError( RuntimeError: Detected that custom integration 'jcihitachi_tw' calls async_write_ha_state from a thread at custom_components/jcihitachi_tw/init.py, line 246: self.coordinator.async_set_updated_data(None). Please report it to the author of the 'jcihitachi_tw' custom integration. 2024-05-03 09:06:27.891 WARNING (SyncWorker_15) [homeassistant.helpers.frame] Detected that custom integration 'hass_agent' calls async_create_task from a thread at custom_components/hass_agent/init.py, line 147: hass.async_create_task(handle_apis_changed(hass, entry, apis)), please report it to the author of the 'hass_agent' custom integration 2024-05-03 09:06:27.898 ERROR (SyncWorker_15) [homeassistant.util.logging] Exception in updated when handling msg on 'hass.agent/devices/GABRIEL-INTEL-N': '{"serial_number":"de16fa55-15e1-4f93-a35d-eca35c57e402","device":{"identifiers":"hass.agent-GABRIEL-INTEL-N","manufacturer":"LAB02 Research","model":"Microsoft Windows NT 10.0.22631.0","name":"GABRIEL-INTEL-N","sw_version":"2022.14.0"},"apis":{"notifications":true,"media_player":true}}' Traceback (most recent call last): File "/config/custom_components/hass_agent/init.py", line 147, in updated hass.async_create_task(handle_apis_changed(hass, entry, apis)) File "/usr/src/homeassistant/homeassistant/core.py", line 816, in async_create_task self.verify_event_loop_thread("async_create_task") File "/usr/src/homeassistant/homeassistant/core.py", line 440, in verify_event_loop_thread frame.report( File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 162, in report _report_integration(what, integration_frame, level, error_if_integration) File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 203, in _report_integration raise RuntimeError( RuntimeError: Detected that custom integration 'hass_agent' calls async_create_task from a thread at custom_components/hass_agent/init.py, line 147: hass.async_create_task(handle_apis_changed(hass, entry, apis)). Please report it to the author of the 'hass_agent' custom integration.

2024-05-03 09:06:27.899 WARNING (SyncWorker_15) [py.warnings] /usr/src/homeassistant/homeassistant/util/logging.py:120: RuntimeWarning: coroutine 'handle_apis_changed' was never awaited log_exception(format_err, *args)

2024-05-03 09:06:53.773 WARNING (SyncWorker_4) [homeassistant.helpers.frame] Detected that custom integration 'jcihitachi_tw' calls async_write_ha_state from a thread at custom_components/jcihitachi_tw/init.py, line 246: self.coordinator.async_set_updated_data(None), please report it to the author of the 'jcihitachi_tw' custom integration 2024-05-03 09:06:53.778 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547074014400] Unexpected exception Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 239, in handle_call_service response = await hass.services.async_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2738, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2779, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 975, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1047, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 729, in async_handle_set_fan_mode_service await self.async_set_fan_mode(fan_mode) File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 737, in async_set_fan_mode await self.hass.async_add_executor_job(self.set_fan_mode, fan_mode) File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/jcihitachi_tw/climate.py", line 361, in set_fan_mode self.update() File "/config/custom_components/jcihitachi_tw/init.py", line 246, in update self.coordinator.async_set_updated_data(None) File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 450, in async_set_updated_data self.async_update_listeners() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 168, in async_update_listeners update_callback() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 492, in _handle_coordinator_update self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1008, in async_write_ha_state self.hass.verify_event_loop_thread("async_write_ha_state") File "/usr/src/homeassistant/homeassistant/core.py", line 440, in verify_event_loop_thread frame.report( File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 162, in report _report_integration(what, integration_frame, level, error_if_integration) File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 203, in _report_integration raise RuntimeError( RuntimeError: Detected that custom integration 'jcihitachi_tw' calls async_write_ha_state from a thread at custom_components/jcihitachi_tw/init.py, line 246: self.coordinator.async_set_updated_data(None). Please report it to the author of the 'jcihitachi_tw' custom integration. 2024-05-03 09:06:58.289 WARNING (SyncWorker_12) [homeassistant.helpers.frame] Detected that custom integration 'hass_agent' calls async_create_task from a thread at custom_components/hass_agent/init.py, line 147: hass.async_create_task(handle_apis_changed(hass, entry, apis)), please report it to the author of the 'hass_agent' custom integration 2024-05-03 09:06:58.304 ERROR (SyncWorker_12) [homeassistant.util.logging] Exception in updated when handling msg on 'hass.agent/devices/GABRIEL-INTEL-N': '{"serial_number":"de16fa55-15e1-4f93-a35d-eca35c57e402","device":{"identifiers":"hass.agent-GABRIEL-INTEL-N","manufacturer":"LAB02 Research","model":"Microsoft Windows NT 10.0.22631.0","name":"GABRIEL-INTEL-N","sw_version":"2022.14.0"},"apis":{"notifications":true,"media_player":true}}' Traceback (most recent call last): File "/config/custom_components/hass_agent/init.py", line 147, in updated hass.async_create_task(handle_apis_changed(hass, entry, apis)) File "/usr/src/homeassistant/homeassistant/core.py", line 816, in async_create_task self.verify_event_loop_thread("async_create_task") File "/usr/src/homeassistant/homeassistant/core.py", line 440, in verify_event_loop_thread frame.report( File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 162, in report _report_integration(what, integration_frame, level, error_if_integration) File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 203, in _report_integration raise RuntimeError( RuntimeError: Detected that custom integration 'hass_agent' calls async_create_task from a thread at custom_components/hass_agent/init.py, line 147: hass.async_create_task(handle_apis_changed(hass, entry, apis)). Please report it to the author of the 'hass_agent' custom integration.

2024-05-03 09:06:58.304 WARNING (SyncWorker_12) [py.warnings] /usr/src/homeassistant/homeassistant/util/logging.py:120: RuntimeWarning: coroutine 'handle_apis_changed' was never awaited log_exception(format_err, *args)

2024-05-03 09:07:28.772 WARNING (SyncWorker_1) [homeassistant.helpers.frame] Detected that custom integration 'hass_agent' calls async_create_task from a thread at custom_components/hass_agent/init.py, line 147: hass.async_create_task(handle_apis_changed(hass, entry, apis)), please report it to the author of the 'hass_agent' custom integration 2024-05-03 09:07:28.780 ERROR (SyncWorker_1) [homeassistant.util.logging] Exception in updated when handling msg on 'hass.agent/devices/GABRIEL-INTEL-N': '{"serial_number":"de16fa55-15e1-4f93-a35d-eca35c57e402","device":{"identifiers":"hass.agent-GABRIEL-INTEL-N","manufacturer":"LAB02 Research","model":"Microsoft Windows NT 10.0.22631.0","name":"GABRIEL-INTEL-N","sw_version":"2022.14.0"},"apis":{"notifications":true,"media_player":true}}' Traceback (most recent call last): File "/config/custom_components/hass_agent/init.py", line 147, in updated hass.async_create_task(handle_apis_changed(hass, entry, apis)) File "/usr/src/homeassistant/homeassistant/core.py", line 816, in async_create_task self.verify_event_loop_thread("async_create_task") File "/usr/src/homeassistant/homeassistant/core.py", line 440, in verify_event_loop_thread frame.report( File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 162, in report _report_integration(what, integration_frame, level, error_if_integration) File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 203, in _report_integration raise RuntimeError( RuntimeError: Detected that custom integration 'hass_agent' calls async_create_task from a thread at custom_components/hass_agent/init.py, line 147: hass.async_create_task(handle_apis_changed(hass, entry, apis)). Please report it to the author of the 'hass_agent' custom integration.

2024-05-03 09:07:28.780 WARNING (SyncWorker_1) [py.warnings] /usr/src/homeassistant/homeassistant/util/logging.py:120: RuntimeWarning: coroutine 'handle_apis_changed' was never awaited log_exception(format_err, *args)

2024-05-03 09:07:37.084 WARNING (SyncWorker_14) [homeassistant.helpers.frame] Detected that custom integration 'jcihitachi_tw' calls async_write_ha_state from a thread at custom_components/jcihitachi_tw/init.py, line 246: self.coordinator.async_set_updated_data(None), please report it to the author of the 'jcihitachi_tw' custom integration 2024-05-03 09:07:37.085 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547074014400] Unexpected exception Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 239, in handle_call_service response = await hass.services.async_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2738, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2779, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 975, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1047, in _handle_entity_call result = await task ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 729, in async_handle_set_fan_mode_service await self.async_set_fan_mode(fan_mode) File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 737, in async_set_fan_mode await self.hass.async_add_executor_job(self.set_fan_mode, fan_mode) File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/jcihitachi_tw/climate.py", line 361, in set_fan_mode self.update() File "/config/custom_components/jcihitachi_tw/init.py", line 246, in update self.coordinator.async_set_updated_data(None) File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 450, in async_set_updated_data self.async_update_listeners() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 168, in async_update_listeners update_callback() File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 492, in _handle_coordinator_update self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1008, in async_write_ha_state self.hass.verify_event_loop_thread("async_write_ha_state") File "/usr/src/homeassistant/homeassistant/core.py", line 440, in verify_event_loop_thread frame.report( File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 162, in report _report_integration(what, integration_frame, level, error_if_integration) File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 203, in _report_integration raise RuntimeError( RuntimeError: Detected that custom integration 'jcihitachi_tw' calls async_write_ha_state from a thread at custom_components/jcihitachi_tw/init.py, line 246: self.coordinator.async_set_updated_data(None). Please report it to the author of the 'jcihitachi_tw' custom integration. home-assistant_2024-05-03T01-07-43.523Z.log

qqaatw commented 2 months ago

I got to know how to fix this, but it involves a big change in the codebase. Let's see if anyone wants to give it a shot, I will be happy to assist.

uzumaki20398 commented 2 months ago

I just try to change custom_components/jcihitachi_tw/init.py, line 246:

self.coordinator.async_set_updated_data(None)

to

self.schedule_update_ha_state()

Then worked without issues