Add entity translations to Slack (#96149)

This commit is contained in:
Joost Lekkerkerker 2023-07-08 18:36:24 +02:00 committed by GitHub
parent 2c9910d9b6
commit 92693d5fde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -29,7 +29,7 @@ async def async_setup_entry(
hass.data[DOMAIN][entry.entry_id][SLACK_DATA],
SensorEntityDescription(
key="do_not_disturb_until",
name="Do not disturb until",
translation_key="do_not_disturb_until",
icon="mdi:clock",
device_class=SensorDeviceClass.TIMESTAMP,
),

View File

@ -25,5 +25,12 @@
"abort": {
"already_configured": "[%key:common::config_flow::abort::already_configured_service%]"
}
},
"entity": {
"sensor": {
"do_not_disturb_until": {
"name": "Do not disturb until"
}
}
}
}