homeassistant-elasticsearch icon indicating copy to clipboard operation
homeassistant-elasticsearch copied to clipboard

[2.0] Remove deprecated usage of `STATE_LOCKED` and `STATE_UNLOCKED`

Open legrego opened this issue 1 year ago • 1 comments

Logger: homeassistant.const Source: helpers/deprecation.py:197 First occurred: 3:15:23 PM (2 occurrences) Last logged: 3:15:24 PM

STATE_LOCKED was used from elasticsearch, this is a deprecated constant which will be removed in HA Core 2025.10. Use LockState.LOCKED instead, please report it to the author of the 'elasticsearch' custom integration

STATE_UNLOCKED was used from elasticsearch, this is a deprecated constant which will be removed in HA Core 2025.10. Use LockState.UNLOCKED instead, please report it to the author of the 'elasticsearch' custom integration

legrego avatar Oct 24 '24 19:10 legrego

Fixing this will require bumping the minimum HA version to 2024.10 which I think we should wait to do

strawgate avatar Dec 21 '24 18:12 strawgate

From the HA core log:

The deprecated constant STATE_LOCKED was used from elasticsearch. It will be removed in HA Core 2025.10. Use LockState.LOCKED instead, please report it to the author of the 'elasticsearch' custom integration

Sounds like it's high time to get this fixed.

helgeklein avatar Oct 21 '25 18:10 helgeklein

Fixed in v2.0.1

legrego avatar Oct 22 '25 14:10 legrego