mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Make co2signal state attribute translatable (#101337)
This commit is contained in:
parent
2627abb9ef
commit
1c60597e41
@ -34,10 +34,20 @@
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"carbon_intensity": {
|
||||
"name": "CO2 intensity"
|
||||
"name": "CO2 intensity",
|
||||
"state_attributes": {
|
||||
"country_code": {
|
||||
"name": "Country code"
|
||||
}
|
||||
}
|
||||
},
|
||||
"fossil_fuel_percentage": {
|
||||
"name": "Grid fossil fuel percentage"
|
||||
"name": "Grid fossil fuel percentage",
|
||||
"state_attributes": {
|
||||
"country_code": {
|
||||
"name": "[%key:component::co2signal::entity::sensor::carbon_intensity::state_attributes::country_code::name%]"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user