Modernize Pi components using Entity Descriptions#33
Modernize Pi components using Entity Descriptions#33Louis983257 wants to merge 6 commits intoAndre0512:mainfrom
Conversation
Updated __init__.py for compatibility with Home Assistant 2024.6+
|
I confirmed this works! I hope this can be merged.. 🤞 I tested by updating the file directly and then restart the HA. |
|
@Andre0512 please merge :) |
|
New Update: Modernization of Pi Components I have updated the integration to use the modern Entity Description pattern. This improves code maintainability and ensures compatibility with current Home Assistant standards. Changes made:
These updates ensure that the Pi-related entities are future-proof and follow the latest best practices. |
Even though I'm not deeply involved in the details of what exactly you've adjusted, I'd like to thank you for further developing this. I've just integrated the five modified files and everything looks good, with no error messages. |
|
Hi @Andre0512 I’ve updated this pull request with the latest changes. If you have a moment, I would really appreciate a review. Thanks for maintaining this integration! 🙏 |
This PR updates the Speedport integration for compatibility with Home Assistant Core 2025.6+ and future versions.
✅ Replaces deprecated method
async_forward_entry_setup()withasync_forward_entry_setups()✅ Removes
async_create_task()misuse✅ Tested on:
New Update 30.01.2026
I have updated the integration to use the modern Entity Description pattern. This improves code maintainability and ensures compatibility with current Home Assistant standards.
Changes made:
binary_sensor.py: Migrated to BinarySensorEntityDescription.
button.py: Refactored to use ButtonEntityDescription.
device.py & switch.py: Updated internal logic to support the new entity structure and improved device handling.
Code Cleanup: Removed deprecated constants and streamlined the initialization process for these components.
These updates ensure that the Pi-related entities are future-proof and follow the latest best practices.