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

Use of deprecated hass.components.persistent_notification function generates warnings in log #154

Closed
ngrusz1 opened this issue Jun 3, 2024 · 3 comments
Labels

Comments

@ngrusz1
Copy link

ngrusz1 commented Jun 3, 2024

Version of the custom_component

0.9.4

Configuration

HA Core: 2024.5.5

Describe the bug

When I restart Home Assistant, the Midea integration will discover my dehumidifier and generate a persistent notification. In my logs, I am now getting a deprecation warning regarding the method that the component uses to generate the notification. Apparently the component needs to be updated to use the new function for generating this type of notification.

Debug log


Logger: homeassistant.helpers.frame
Source: helpers/frame.py:190
First occurred: 6:14:14 PM (1 occurrences)
Last logged: 6:14:14 PM

Detected that custom integration 'midea_dehumidifier_lan' accesses hass.components.persistent_notification. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to import functions used from persistent_notification directly at custom_components/midea_dehumidifier_lan/appliance_discovery.py, line 204: self.hass.components.persistent_notification.async_create(, please create a bug report at https://github.com/nbogojevic/homeassistant-midea-air-appliances-lan/issues

Copy link

github-actions bot commented Aug 2, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Aug 2, 2024
@ngrusz1
Copy link
Author

ngrusz1 commented Aug 2, 2024

bump

@github-actions github-actions bot removed the Stale label Aug 3, 2024
Copy link

github-actions bot commented Oct 2, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Oct 2, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant