dolezsa / thermal_comfort

Thermal Comfort sensor for HA (absolute humidity, heat index, dew point, thermal perception)
Other
619 stars 118 forks source link

hass.helpers.service will stop working #395

Closed Clappsepp closed 1 month ago

Clappsepp commented 2 months ago

2024-09-05 20:27:11.486 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'thermal_comfort' accesses hass.helpers.service. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from service directly at custom_components/thermal_comfort/init.py, line 162: hass.helpers.service.async_register_admin_service(, please create a bug report at https://github.com/dolezsa/thermal_comfort/issues

igorsantos07 commented 2 months ago

Looks like a dupe of #370, #374 and #376, which is said to be fixed at #377. A search for the error message is useful before creating any issue.

As a matter of fact, I installed this integration today and I have no error on my logs. I wonder if yours is outdated?

MaxiKingXXL commented 2 months ago

I have the same error in my log. The issue is not solved in v2.2.2 master branch yet.

Logger: homeassistant.helpers.frame Quelle: helpers/frame.py:184 Erstmals aufgetreten: 22:33:19 (2 Vorkommnisse) Zuletzt protokolliert: 22:33:21

Detected that custom integration 'thermal_comfort' accesses hass.helpers.service. This is deprecated and will stop working in Home Assistant 2024.11, it should be updated to import functions used from service directly at custom_components/thermal_comfort/init.py, line 162: hass.helpers.service.async_register_admin_service(, please create a bug report at https://github.com/dolezsa/thermal_comfort/issues

mzaufl commented 2 months ago

I added the Code Snipplet (fixed at #377) to "custom_components/thermal_comfort/init.py" and now it works again. Warning is disappeared.

pejotigrek commented 1 month ago

I added the Code Snipplet (fixed at #377) to "custom_components/thermal_comfort/init.py" and now it works again. Warning is disappeared.

can you please elaborate on that? I am on v2.2.2, I've compared my installed __init__.py with the one in the repository, they look the same but still, I've got the aboe warning in the logs..

sven-debug commented 1 month ago

I can add, the problem still exists and is not solved in 2.2.2. Would be a pity if the integration would stop working because it is a great one!

Maarc commented 1 month ago

Hi! I have the same issue with the latest version.

Detected that custom integration 'thermal_comfort' accesses hass.helpers.service. This is deprecated and will stop working in Home Assistant 2024.11

It looks like the fix #377 has been merged on the master branch on August 11th. However, no new release has been published since January 8th (version 2.2.2).

Is there any chance someone could bump up a new release to get this one fixed before 2024.11? :-)