Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Depricated alias HomeAssistantType and function async_forward_entry_setup throw Warnings #276

Closed
amckenny opened this issue Jul 7, 2024 · 3 comments

Comments

@amckenny
Copy link

amckenny commented Jul 7, 2024

Describe the bug

When loading Hubitat following a restart of Home Assistant, the following error is logged:

2024-07-07 14:04:25.896 WARNING (ImportExecutor_0) [homeassistant.helpers.typing] HomeAssistantType was used from hubitat, 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 'hubitat' custom integration
2024-07-07 14:04:46.177 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'hubitat' calls async_forward_entry_setup for integration, hubitat with title: Hubitat (4d52a6b8) and entry_id: 95861519b0146f995cd7b851039bd67b, which is deprecated and will stop working in Home Assistant 2025.6, await async_forward_entry_setups instead at custom_components/hubitat/hub.py, line 317: hass.async_create_task(, please create a bug report at https://github.com/jason0x43/hacs-hubitat/issues
2024-07-07 14:04:46.204 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration hubitat with title: Hubitat (4d52a6b8) and entry_id: 95861519b0146f995cd7b851039bd67b, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue.
2024-07-07 14:04:46.206 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration hubitat with title: Hubitat (4d52a6b8) and entry_id: 95861519b0146f995cd7b851039bd67b, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue.
2024-07-07 14:04:46.215 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration hubitat with title: Hubitat (4d52a6b8) and entry_id: 95861519b0146f995cd7b851039bd67b, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue.
2024-07-07 14:04:46.216 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration hubitat with title: Hubitat (4d52a6b8) and entry_id: 95861519b0146f995cd7b851039bd67b, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue.
2024-07-07 14:04:46.230 WARNING (MainThread) [homeassistant.helpers.frame] Detected code that calls async_forward_entry_setup for integration hubitat with title: Hubitat (4d52a6b8) and entry_id: 95861519b0146f995cd7b851039bd67b, during setup without awaiting async_forward_entry_setup, which can cause the setup lock to be released before the setup is done. This will stop working in Home Assistant 2025.1. Please report this issue.

To Reproduce

  1. Restart Home Assistant
  2. Settings > System > Logs
  3. Filter for "Hubitat"

Environment

  • Home Assistant version:
    • Core: 2024.7.1
    • Supervisor: 2024.06.2
    • Operating System: 12.4
    • Frontend: 20240705.0
  • Integration version:
    • HACS: 1.34.0
    • hacs-hubitat: 0.9.28

The offending lines appear to be:

@jason0x43
Copy link
Owner

Thanks for the report! This should be fixed in v0.9.29.

@markus99
Copy link

I'm on 0.9.31 and seeing this error:

Logger: homeassistant.helpers.typing
Source: helpers/deprecation.py:197
First occurred: 9:26:53 AM (1 occurrences)
Last logged: 9:26:53 AM

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

I'm back on 2024.6.4, so unsure if my delay in upgrading to 2024.8.x is creating the issue, but guessing not.

@jason0x43 jason0x43 reopened this Aug 21, 2024
@jason0x43
Copy link
Owner

Thanks for letting me know! This is fixed in 3b55157, which will be in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants