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

Deprecation warning received regarding RestoreStateData.async_get_instance during Hass 2023.6.0 start-up #473

Closed
slomanl1 opened this issue Jun 8, 2023 · 5 comments

Comments

@slomanl1
Copy link

slomanl1 commented Jun 8, 2023

2023-06-07 22:19:26.970 WARNING (MainThread) [homeassistant.helpers.frame] Detected integration that restore_state.RestoreStateData.async_get_instance is deprecated, and not intended to be called by custom components; Pleaserefactor your code to use RestoreEntity instead; restore_state.async_get(hass) can be used in the meantime. Please report issue to the custom integration author for pyscript using this method at custom_components/pyscript/init.py, line 83: restore_data = await RestoreStateData.async_get_instance(hass)

@craigbarratt
Copy link
Member

@swazrgb could you look at this please?

@JohnnyTwoFingers
Copy link

2023-06-07 22:19:26.970 WARNING (MainThread) [homeassistant.helpers.frame] Detected integration that restore_state.RestoreStateData.async_get_instance is deprecated, and not intended to be called by custom components; Pleaserefactor your code to use RestoreEntity instead; restore_state.async_get(hass) can be used in the meantime. Please report issue to the custom integration author for pyscript using this method at custom_components/pyscript/init.py, line 83: restore_data = await RestoreStateData.async_get_instance(hass)

I have the same issue

@dg1yds
Copy link

dg1yds commented Jun 16, 2023

I have the same issue - Home Assistant 2023.6.2

craigbarratt added a commit that referenced this issue Jun 18, 2023
see #473.  This is a hack; should re-implement using RestoreEntity.
@craigbarratt
Copy link
Member

Pushed 716ffd7 - a hacky fix. A better solution would be to re-implement using RestoreEntity or similar.

@craigbarratt
Copy link
Member

Released in 1.5.0.

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

4 participants