AlexandrErohin / home-assistant-tplink-router

Home Assistant component for TP-Link router administration with sensors, button reboot, switches and device tracking.
https://community.home-assistant.io/t/custom-component-tp-link-router-integration
MIT License
137 stars 16 forks source link

Deprecated config entry data update method #48

Closed ShantanuKhan closed 7 months ago

ShantanuKhan commented 7 months ago

Describe the bug

Detected that custom integration 'tplink_router' sets "data" directly to update a config entry. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to use async_update_entry instead at custom_components/tplink_router/config_flow.py, line 75: self.config_entry.data = user_input

Logs

Logger: homeassistant.helpers.frame Source: helpers/frame.py:188 First occurred: 11:46:51 AM (1 occurrences) Last logged: 11:46:51 AM

Detected that custom integration 'tplink_router' sets "data" directly to update a config entry. This is deprecated and will stop working in Home Assistant 2024.9, it should be updated to use async_update_entry instead at custom_components/tplink_router/config_flow.py, line 75: self.config_entry.data = user_input, please create a bug report at https://github.com/AlexandrErohin/home-assistant-tplink-router/issues

Additional Information

AlexandrErohin commented 7 months ago

@ShantanuKhan Fixed

AlexandrErohin commented 7 months ago

@ShantanuKhan P.S. Would be great if you could give a star for this repo :) Thanks

ShantanuKhan commented 7 months ago

@AlexandrErohin done, thanks for the quick fix.