hacs / integration

HACS gives you a powerful UI to handle downloads of all your custom needs.
https://hacs.xyz
MIT License
5.22k stars 1.26k forks source link

homeassistant.util.json error - deprecated function #3975

Closed Palmdale95 closed 1 month ago

Palmdale95 commented 1 month ago

System Health details

System Information

version core-2024.8.1
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.4
os_name Linux
os_version 6.6.44-haos
arch x86_64
timezone Europe/Berlin
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 5000 Installed Version | 1.34.0 Stage | running Available Repositories | 1459 Downloaded Repositories | 8 HACS Data | ok
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 13.0 -- | -- update_channel | stable supervisor_version | supervisor-2024.08.0 agent_version | 1.6.0 docker_version | 26.1.4 disk_total | 62.3 GB disk_used | 18.0 GB healthy | true supported | true host_connectivity | true supervisor_connectivity | true ntp_synchronized | true virtualization | kvm board | ova supervisor_api | ok version_api | ok installed_addons | File editor (5.8.0), Advanced SSH & Web Terminal (18.0.0), Mosquitto broker (6.4.1), OneDrive Backup (2.3.1), Samba share (12.3.2), Node-RED (18.0.5), Nginx Proxy Manager (1.0.1), Whisper (2.1.2), Piper (1.5.2), MariaDB (2.7.1), Volvo2Mqtt (1.9.6)
Dashboards dashboards | 4 -- | -- resources | 1 views | 13 mode | storage
Recorder oldest_recorder_run | 6. August 2024 um 12:42 -- | -- current_recorder_run | 15. August 2024 um 08:08 estimated_db_size | 2901.89 MiB database_engine | mysql database_version | 10.11.6

Checklist

Describe the issue

Logger: homeassistant.util.json Quelle: helpers/deprecation.py:197 Erstmals aufgetreten: 08:23:23 (4 Vorkommnisse) Zuletzt protokolliert: 08:23:45

json_loads was called from hacs, this is a deprecated function which will be removed in HA Core 2025.8. Use homeassistant.util.json.json_loads instead, please create a bug report at https://github.com/hacs/integration/issues

Reproduction steps

  1. nothing special done
  2. occured after upgrading HS OS to 13.0
  3. see debug loogs and error message ...

Debug logs

2024-08-15 08:08:52.112 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration home_connect_alt 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-08-15 08:08:52.113 WARNING (SyncWorker_0) [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-08-15 08:08:52.113 WARNING (SyncWorker_0) [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-08-15 08:08:52.114 WARNING (SyncWorker_0) [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-08-15 08:08:52.114 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration ha_strava 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-08-15 08:08:52.115 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration proxmoxve 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-08-15 08:08:52.115 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration electrolux_status 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-08-15 08:08:52.116 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration powercalc 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-08-15 08:08:55.765 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call `await hass.http.async_register_static_paths([StaticPathConfig("/hacsfiles/frontend", "/config/custom_components/hacs/hacs_frontend_experimental", False)])`; This function will be removed in 2025.7 at custom_components/hacs/frontend.py, line 49: hass.http.register_static_path(, please create a bug report at https://github.com/hacs/integration/issues
2024-08-15 08:08:55.769 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call `await hass.http.async_register_static_paths([StaticPathConfig("/hacsfiles/iconset.js", "/config/custom_components/hacs/iconset.js", True)])`; This function will be removed in 2025.7 at custom_components/hacs/frontend.py, line 57: hass.http.register_static_path(, please create a bug report at https://github.com/hacs/integration/issues
2024-08-15 08:08:55.772 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-08-15 08:08:55.777 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hacs' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call `await hass.http.async_register_static_paths([StaticPathConfig("/hacsfiles", "/config/www/community", True)])`; This function will be removed in 2025.7 at custom_components/hacs/base.py, line 1162: self.hass.http.register_static_path(, please create a bug report at https://github.com/hacs/integration/issues
2024-08-15 08:09:02.131 ERROR (SyncWorker_8) [root] Ical data was modified to avoid compatibility issues
(Your calendar server breaks the icalendar standard)
This is probably harmless, particularly if not editing events or tasks
(error count: 1 - this error is ratelimited)
NoneType: None
2024-08-15 08:09:02.133 ERROR (SyncWorker_8) [root] --- 
+++ 
@@ -6,7 +6,6 @@
 DTSTAMP:20240815T060902Z
 CREATED:20240201T172124Z
 LAST-MODIFIED:20240812T062612Z
-DTSTAMP:20240812T062612Z
 UID:BDA6F3D1-3E1B-45C3-8469-3A83D2C94A87
 SUMMARY:Mathe Nachhilfe 
 X-MOZ-LASTACK:20240812T062612Z
2024-08-15 08:09:02.133 ERROR (SyncWorker_8) [root] Ical data was modified to avoid compatibility issues
(Your calendar server breaks the icalendar standard)
This is probably harmless, particularly if not editing events or tasks
(error count: 2 - this error is ratelimited)
NoneType: None
2024-08-15 08:09:02.134 ERROR (SyncWorker_8) [root] --- 
+++ 
@@ -5,7 +5,6 @@
 BEGIN:VEVENT
 DTSTAMP:20240815T060902Z
 CREATED:20240806T200151Z
-DTSTAMP:20240806T200151Z
 LAST-MODIFIED:20240806T200151Z
 LOCATION:Kletterwand des Deutschen Alpenvereins Sektion Braunschweig\nGül
  denstraße 39C\, 38100 Braunschweig\, Deutschland
2024-08-15 08:09:11.699 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-08-15 08:10:10.555 WARNING (Recorder) [homeassistant.components.sensor.recorder] The unit of sensor.watchman_missing_entities is changing, got multiple {None, 'items'}, generation of long term statistics will be suppressed unless the unit is stable and matches the unit of already compiled statistics (items). Go to https://my.home-assistant.io/redirect/developer_statistics to fix this
2024-08-15 08:10:59.344 WARNING (SyncWorker_16) [urllib3.connectionpool] Connection pool is full, discarding connection: 192.168.178.205. Connection pool size: 10
2024-08-15 08:11:59.317 WARNING (SyncWorker_36) [urllib3.connectionpool] Connection pool is full, discarding connection: 192.168.178.205. Connection pool size: 10
2024-08-15 08:18:59.313 WARNING (SyncWorker_42) [urllib3.connectionpool] Connection pool is full, discarding connection: 192.168.178.205. Connection pool size: 10
2024-08-15 08:21:59.331 WARNING (SyncWorker_45) [urllib3.connectionpool] Connection pool is full, discarding connection: 192.168.178.205. Connection pool size: 10
2024-08-15 08:23:23.550 WARNING (MainThread) [homeassistant.util.json] json_loads was called from hacs, this is a deprecated function which will be removed in HA Core 2025.8. Use homeassistant.util.json.json_loads instead, please create a bug report at https://github.com/hacs/integration/issues
2024-08-15 08:23:23.808 WARNING (MainThread) [homeassistant.util.json] json_loads was called from hacs, this is a deprecated function which will be removed in HA Core 2025.8. Use homeassistant.util.json.json_loads instead, please create a bug report at https://github.com/hacs/integration/issues
2024-08-15 08:23:44.691 WARNING (MainThread) [homeassistant.util.json] json_loads was called from hacs, this is a deprecated function which will be removed in HA Core 2025.8. Use homeassistant.util.json.json_loads instead, please create a bug report at https://github.com/hacs/integration/issues
2024-08-15 08:23:45.052 WARNING (MainThread) [homeassistant.util.json] json_loads was called from hacs, this is a deprecated function which will be removed in HA Core 2025.8. Use homeassistant.util.json.json_loads instead, please create a bug report at https://github.com/hacs/integration/issues
2024-08-15 08:24:02.335 ERROR (SyncWorker_9) [root] Ical data was modified to avoid compatibility issues
(Your calendar server breaks the icalendar standard)
This is probably harmless, particularly if not editing events or tasks
(error count: 4 - this error is ratelimited)
NoneType: None
2024-08-15 08:24:02.335 ERROR (SyncWorker_9) [root] --- 
+++ 
@@ -5,7 +5,6 @@
 BEGIN:VEVENT
 DTSTAMP:20240815T062402Z
 CREATED:20240806T200151Z
-DTSTAMP:20240806T200151Z
 LAST-MODIFIED:20240806T200151Z
 LOCATION:Kletterwand des Deutschen Alpenvereins Sektion Braunschweig\nGül
  denstraße 39C\, 38100 Braunschweig\, Deutschland
2024-08-15 08:24:59.281 WARNING (SyncWorker_48) [urllib3.connectionpool] Connection pool is full, discarding connection: 192.168.178.205. Connection pool size: 10
2024-08-15 08:30:59.283 WARNING (SyncWorker_8) [urllib3.connectionpool] Connection pool is full, discarding connection: 192.168.178.205. Connection pool size: 10
2024-08-15 08:33:50.545 WARNING (MainThread) [homeassistant.components.homekit.type_cameras] Streaming process ended unexpectedly - PID 2530
2024-08-15 08:36:59.326 WARNING (SyncWorker_13) [urllib3.connectionpool] Connection pool is full, discarding connection: 192.168.178.205. Connection pool size: 10
2024-08-15 08:54:02.316 ERROR (SyncWorker_34) [root] Ical data was modified to avoid compatibility issues
(Your calendar server breaks the icalendar standard)
This is probably harmless, particularly if not editing events or tasks
(error count: 8 - this error is ratelimited)
NoneType: None
2024-08-15 08:54:02.316 ERROR (SyncWorker_34) [root] --- 
+++ 
@@ -5,7 +5,6 @@
 BEGIN:VEVENT
 DTSTAMP:20240815T065402Z
 CREATED:20240806T200151Z
-DTSTAMP:20240806T200151Z
 LAST-MODIFIED:20240806T200151Z
 LOCATION:Kletterwand des Deutschen Alpenvereins Sektion Braunschweig\nGül
  denstraße 39C\, 38100 Braunschweig\, Deutschland
2024-08-15 09:20:59.283 WARNING (SyncWorker_1) [urllib3.connectionpool] Connection pool is full, discarding connection: 192.168.178.205. Connection pool size: 10
2024-08-15 09:32:59.375 WARNING (SyncWorker_8) [urllib3.connectionpool] Connection pool is full, discarding connection: 192.168.178.205. Connection pool size: 10

Diagnostics dump

home-assistant_hacs_2024-08-15T07-43-13.716Z.log

hacs-bot[bot] commented 1 month ago

Make sure you have read the issue guidelines and that you filled out the entire template.

If you have an issue identical to this, do not add comments like "same here", "i have this too", instead add a :+1: reaction to the issue description. Thanks! :+1:

sefininio commented 1 month ago

I am also seeing this... Errors I see are related to:

[*] hass.http.register_static_path:

[homeassistant.helpers.frame] Detected that custom integration 'hacs' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call `await hass.http.async_register_static_paths([StaticPathConfig("/hacsfiles/themes", "/config/themes", True)])`; This function will be removed in 2025.7 at custom_components/hacs/base.py, line 1182: self.hass.http.register_static_path(f"{URL_BASE}/themes", self.hass.config.path("themes")), please create a bug report at [https://github.com/hacs/integration/issues](https://github.com/hacs/integration/issues%3C/span%3E)

[*] hass.helpers.event:

[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 630: self.hass.helpers.event.async_track_time_interval(, please create a bug report at [https://github.com/hacs/integration/issues](https://github.com/hacs/integration/issues%3C/span%3E)

[*] json_loads:

[homeassistant.util.json] json_loads was called from hacs, this is a deprecated function which will be removed in HA Core 2025.8. Use homeassistant.util.json.json_loads instead, please create a bug report at [https://github.com/hacs/integration/issues](https://github.com/hacs/integration/issues%3C/span%3E)
Marcoletto commented 1 month ago

Registratore: homeassistant.util.json Fonte: helpers/deprecation.py:197 Prima occorrenza: 14:31:09 (4 occorrenze) Ultima registrazione: 14:31:09

json_loads was called from hacs, this is a deprecated function which will be removed in HA Core 2025.8. Use homeassistant.util.json.json_loads instead, please create a bug report at https://github.com/hacs/integration/issues