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