Add translations to Workday state attributes (#103320)

This commit is contained in:
Jan Rieger 2023-11-03 17:49:48 +01:00 committed by GitHub
parent 921d6feae7
commit 0f1c96ba97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 0 deletions

View File

@ -129,6 +129,7 @@ class IsWorkdaySensor(BinarySensorEntity):
_attr_has_entity_name = True _attr_has_entity_name = True
_attr_name = None _attr_name = None
_attr_translation_key = DOMAIN
def __init__( def __init__(
self, self,

View File

@ -129,5 +129,22 @@
} }
} }
} }
},
"entity": {
"binary_sensor": {
"workday": {
"state_attributes": {
"workdays": {
"name": "[%key:component::workday::config::step::options::data::workdays%]"
},
"excludes": {
"name": "[%key:component::workday::config::step::options::data::excludes%]"
},
"days_offset": {
"name": "[%key:component::workday::config::step::options::data::days_offset%]"
}
}
}
}
} }
} }