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

Updated code to new vacuum state property #162

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

joakimjalden
Copy link
Contributor

As of Home Assistant Core 2025.1, the constants used to return state in StateVacuumEntity are deprecated and replaced by the VacuumActivity enum; see new vacuum state property. There is a one-year deprecation period, and the constants will stop working from 2026.1.

The code has been updated to use the VacuumActivity enum and set the activity property instead of directly setting the state property, ensuring the integration continues working past 2026.

property from setting the state property directly
Copy link
Owner

@JohNan JohNan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

Maybe we should wait for the next release of HA before releasing a new version of the integration, to let people have some time to upgrade.

@joakimjalden
Copy link
Contributor Author

Sounds like a good plan.

@JohNan JohNan merged commit 7be45cd into JohNan:main Jan 10, 2025
2 checks passed
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.

2 participants