mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Add translations to Workday state attributes (#103320)
This commit is contained in:
parent
921d6feae7
commit
0f1c96ba97
@ -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,
|
||||||
|
@ -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%]"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user