mirror of
https://github.com/home-assistant/core.git
synced 2025-07-31 19:25:12 +02:00
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:
@@ -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%]"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user