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

AREA_SQUARE_METERS was used from tuya_local, this is a deprecated constant which will be removed in HA Core 2025.12 #2596

Closed
2 of 4 tasks
felipecrs opened this issue Dec 2, 2024 · 4 comments

Comments

@felipecrs
Copy link
Contributor

felipecrs commented Dec 2, 2024

Description

Found this in my HA logs:

Logger: homeassistant.const
Source: helpers/deprecation.py:222
First occurred: 1:15:14 PM (1 occurrences)
Last logged: 1:15:14 PM

AREA_SQUARE_METERS was used from tuya_local, this is a deprecated constant which will be removed in HA Core 2025.12. Use UnitOfArea.SQUARE_METERS instead, please report it to the author of the 'tuya_local' custom integration

Steps to reproduce

No response

Expected behaviour

No response

Additional context

No response

Confirmation

  • I am sure this is a bug or improvement, that is well enough described that it can be implemented.

  • If this is for a specific device, the device config is mentioned above, or diagnostics are included.

  • Log messages or diagnostics relevant to the issue are included.

  • This is not requesting addition of a new device.

@felipecrs felipecrs added the bug Something isn't working label Dec 2, 2024
@make-all make-all moved this to 📋 Backlog in Tuya Local Dec 2, 2024
@make-all make-all added maintenance Changes to keep up with HA development and removed bug Something isn't working labels Dec 3, 2024
@make-all
Copy link
Owner

make-all commented Dec 3, 2024

This is new in HA 2024.12, which isn't even released yet, so it is not appropriate to change at this time.

@felipecrs
Copy link
Contributor Author

That's totally right, it's not actionable ATM.

@make-all
Copy link
Owner

make-all commented Dec 3, 2024

None of the documentation related to this change has been updated yet, and it is not announced on the Developer blog, but it looks like in addition to replacing the AREA_SQUARE_METERS constant with an enum expanded to cover other units, there is also a new "area" class available for sensor and number entities in 2024.12.

@smarthomefamilyverrips
Copy link

Logger: homeassistant.const
Source: helpers/deprecation.py:222
First occurred: 11:23:30 (1 occurrences)
Last logged: 11:23:30

AREA_SQUARE_METERS was used from tuya_local, this is a deprecated constant which will be removed in HA Core 2025.12. Use UnitOfArea.SQUARE_METERS instead, please report it to the author of the 'tuya_local' custom integration

@make-all make-all moved this from 📋 Backlog to 🔖 Ready in Tuya Local Dec 15, 2024
@make-all make-all added awaiting confirmation Wating for confirmation the issue is solved unreleased Will be in next release labels Dec 25, 2024
@make-all make-all moved this from 🔖 Ready to ✅ Done in Tuya Local Dec 25, 2024
@make-all make-all removed awaiting confirmation Wating for confirmation the issue is solved unreleased Will be in next release maintenance Changes to keep up with HA development labels Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants