Use common states for battery_critical in nuki (#142349)

Replace "on": "Low" and "off": "Normal" with common states.

This will allow us to use the common states in the `binary_sensor` class, too.
This commit is contained in:
Norbert Rittel 2025-04-07 09:17:21 +02:00 committed by GitHub
parent 7c488f1e54
commit a44adf2e6f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,8 +48,8 @@
"state_attributes": {
"battery_critical": {
"state": {
"on": "[%key:component::binary_sensor::entity_component::battery::state::on%]",
"off": "[%key:component::binary_sensor::entity_component::battery::state::off%]"
"on": "[%key:common::state::low%]",
"off": "[%key:common::state::normal%]"
}
}
}