Skip to content

Modernize Pi components using Entity Descriptions#33

Open
Louis983257 wants to merge 6 commits intoAndre0512:mainfrom
Louis983257:main
Open

Modernize Pi components using Entity Descriptions#33
Louis983257 wants to merge 6 commits intoAndre0512:mainfrom
Louis983257:main

Conversation

@Louis983257
Copy link

@Louis983257 Louis983257 commented Jun 12, 2025

This PR updates the Speedport integration for compatibility with Home Assistant Core 2025.6+ and future versions.

✅ Replaces deprecated method async_forward_entry_setup() with async_forward_entry_setups()
✅ Removes async_create_task() misuse
✅ Tested on:

  • Home Assistant Core 2025.6.1
  • Speedport Smart 4 Typ A

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.

Updated __init__.py for compatibility with Home Assistant 2024.6+
@Louis983257 Louis983257 changed the title Fix: Replace deprecated async_forward_entry_setup with async_forward_entry_setups (HA 2024.6+) Fix: Replace deprecated async_forward_entry_setup with async_forward_entry_setups (HA 2025.6+) Jun 12, 2025
@matriphe
Copy link
Contributor

matriphe commented Jun 13, 2025

I confirmed this works! I hope this can be merged.. 🤞

I tested by updating the file directly and then restart the HA.

@haukee
Copy link

haukee commented Jun 19, 2025

@Andre0512 please merge :)

@Louis983257
Copy link
Author

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:

  • 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.

@Louis983257 Louis983257 changed the title Fix: Replace deprecated async_forward_entry_setup with async_forward_entry_setups (HA 2025.6+) Modernize Pi components using Entity Descriptions Jan 30, 2026
@NordFreak
Copy link

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:

* 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.

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.

@Louis983257
Copy link
Author

Hi @Andre0512

I’ve updated this pull request with the latest changes.
Everything is now working correctly with current Home Assistant versions.

If you have a moment, I would really appreciate a review.
If you prefer this PR to be split into smaller parts or want changes to naming/structure, just let me know — I’m happy to adjust anything quickly.

Thanks for maintaining this integration! 🙏

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

Successfully merging this pull request may close these issues.

4 participants