mirror of
https://github.com/home-assistant/core.git
synced 2025-04-26 18:27:51 +00: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:
parent
7c488f1e54
commit
a44adf2e6f
@ -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%]"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user