Make co2signal state attribute translatable (#101337)

This commit is contained in:
Jan-Philipp Benecke 2023-10-03 21:19:32 +02:00 committed by GitHub
parent 2627abb9ef
commit 1c60597e41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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%]"
}
}
}
}
}