remote_homeassistant icon indicating copy to clipboard operation
remote_homeassistant copied to clipboard

HomeAssistantType will be deprecated in 2025.5 release of HA

Open Rob65 opened this issue 1 year ago • 1 comments

After installing this component, the following warning appears in my log file:

HomeAssistantType was used from remote_homeassistant, 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 'remote_homeassistant' custom integration

System info:

Core 2024.5.1
Supervisor 2024.04.4
Operating System 12.2
Frontend 20240501.0

Rob65 avatar May 04 '24 12:05 Rob65

To extend on this, there are actually 2 warnings

2024-05-10 23:01:50.414 WARNING (ImportExecutor_0) [homeassistant.helpers.typing] HomeAssistantType was used from remote_homeassistant, 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 'remote_homeassistant' custom integration
2024-05-10 23:01:50.444 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'remote_homeassistant' 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/remote_homeassistant/__init__.py, line 213: hass.helpers.service.async_register_admin_service(, please create a bug report at https://github.com/custom-components/remote_homeassistant/issues

PaarthShah avatar May 11 '24 06:05 PaarthShah

You can visit my fork at https://github.com/jaym25/remote_homeassistant and it has been updated with many of ignored pull requests, adds local unique IDs and fixes the latest deprecation warnings. Download the Zip file, copy the custom-components/remote_homeassistant contents into your custom_components/remote_homeassistant folder, restart Home Assistant and Enjoy.

jaym25 avatar Jun 18 '24 07:06 jaym25

Smashing! You're a star! It's working for me :) What's your recommendation with the current one, should I remove it from my HACS?

Zeunas avatar Jun 18 '24 08:06 Zeunas

I suggest leaving it on HACS so you can be aware if it changes... However, If it does change and you update it and don't like the result, just copy this one back into the folder again. If you do remove it from HACS it will probably remove the folder and you will have to manually recreate it.

jaym25 avatar Jun 18 '24 15:06 jaym25

As you have noticed currently I am unfortunately lacking time to look at the issues/PRs in a timely manner

@jaym25 if you would like to and want to contribute, I would be happy to add you as a maintainer to this repository. please let me know if this is something you would be interested in

lukas-hetzenecker avatar Jun 18 '24 16:06 lukas-hetzenecker

@lukas-hetzenecker I understand where your coming from. Busy myself, but maybe between the two of us we can cover it. I will also try a pull request with what I have done. I'm 6 commits ahead on the main branch. Not sure how to do that. I been using my own components for quite awhile, but just starting how to contribute through github.

jaym25 avatar Jun 18 '24 18:06 jaym25