mirror of
https://github.com/home-assistant/core.git
synced 2025-07-28 07:37:34 +00:00
Replace "Off" with common state in airgradient
(#141829)
* Replace "Off" with common state in `airgradient` Also reference the name for CO2 from the `sensor` integration. * Replace indirect with direct references
This commit is contained in:
parent
c6c2309dee
commit
4734a82f99
@ -68,8 +68,8 @@
|
|||||||
"led_bar_mode": {
|
"led_bar_mode": {
|
||||||
"name": "LED bar mode",
|
"name": "LED bar mode",
|
||||||
"state": {
|
"state": {
|
||||||
"off": "Off",
|
"off": "[%key:common::state::off%]",
|
||||||
"co2": "Carbon dioxide",
|
"co2": "[%key:component::sensor::entity_component::carbon_dioxide::name%]",
|
||||||
"pm": "Particulate matter"
|
"pm": "Particulate matter"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -143,8 +143,8 @@
|
|||||||
"led_bar_mode": {
|
"led_bar_mode": {
|
||||||
"name": "[%key:component::airgradient::entity::select::led_bar_mode::name%]",
|
"name": "[%key:component::airgradient::entity::select::led_bar_mode::name%]",
|
||||||
"state": {
|
"state": {
|
||||||
"off": "[%key:component::airgradient::entity::select::led_bar_mode::state::off%]",
|
"off": "[%key:common::state::off%]",
|
||||||
"co2": "[%key:component::airgradient::entity::select::led_bar_mode::state::co2%]",
|
"co2": "[%key:component::sensor::entity_component::carbon_dioxide::name%]",
|
||||||
"pm": "[%key:component::airgradient::entity::select::led_bar_mode::state::pm%]"
|
"pm": "[%key:component::airgradient::entity::select::led_bar_mode::state::pm%]"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user