Add more state references to shelly (#142716)

- replace "Normal" with common state
- replace `self_test` state attributes with references
This commit is contained in:
Norbert Rittel 2025-04-11 15:39:44 +02:00 committed by GitHub
parent f42f698dbc
commit a4234bf80e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -175,16 +175,16 @@
"operation": { "operation": {
"state": { "state": {
"warmup": "Warm-up", "warmup": "Warm-up",
"normal": "Normal", "normal": "[%key:common::state::normal%]",
"fault": "Fault" "fault": "Fault"
}, },
"state_attributes": { "state_attributes": {
"self_test": { "self_test": {
"state": { "state": {
"not_completed": "Not completed", "not_completed": "[%key:component::shelly::entity::sensor::self_test::state::not_completed%]",
"completed": "Completed", "completed": "[%key:component::shelly::entity::sensor::self_test::state::completed%]",
"running": "Running", "running": "[%key:component::shelly::entity::sensor::self_test::state::running%]",
"pending": "Pending" "pending": "[%key:component::shelly::entity::sensor::self_test::state::pending%]"
} }
} }
} }