mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Add entity translations to Slack (#96149)
This commit is contained in:
parent
2c9910d9b6
commit
92693d5fde
@ -29,7 +29,7 @@ async def async_setup_entry(
|
|||||||
hass.data[DOMAIN][entry.entry_id][SLACK_DATA],
|
hass.data[DOMAIN][entry.entry_id][SLACK_DATA],
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="do_not_disturb_until",
|
key="do_not_disturb_until",
|
||||||
name="Do not disturb until",
|
translation_key="do_not_disturb_until",
|
||||||
icon="mdi:clock",
|
icon="mdi:clock",
|
||||||
device_class=SensorDeviceClass.TIMESTAMP,
|
device_class=SensorDeviceClass.TIMESTAMP,
|
||||||
),
|
),
|
||||||
|
@ -25,5 +25,12 @@
|
|||||||
"abort": {
|
"abort": {
|
||||||
"already_configured": "[%key:common::config_flow::abort::already_configured_service%]"
|
"already_configured": "[%key:common::config_flow::abort::already_configured_service%]"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"entity": {
|
||||||
|
"sensor": {
|
||||||
|
"do_not_disturb_until": {
|
||||||
|
"name": "Do not disturb until"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user