mirror of
https://github.com/home-assistant/core.git
synced 2026-09-24 15:31:52 -05:00
Add time created to persistent notifications. (#17121)
* Add time created to persistent notifications. * UTC
This commit is contained in:
committed by
Paulus Schoutsen
parent
05d8c57212
commit
cc1891ef2b
@@ -41,6 +41,7 @@ class TestPersistentNotification:
|
||||
assert notification['status'] == pn.STATUS_UNREAD
|
||||
assert notification['message'] == 'Hello World 2'
|
||||
assert notification['title'] == '2 beers'
|
||||
assert notification['created_at'] is not None
|
||||
notifications.clear()
|
||||
|
||||
def test_create_notification_id(self):
|
||||
@@ -174,6 +175,7 @@ async def test_ws_get_notifications(hass, hass_ws_client):
|
||||
assert notification['message'] == 'test'
|
||||
assert notification['title'] is None
|
||||
assert notification['status'] == pn.STATUS_UNREAD
|
||||
assert notification['created_at'] is not None
|
||||
|
||||
# Mark Read
|
||||
await hass.services.async_call(pn.DOMAIN, pn.SERVICE_MARK_READ, {
|
||||
|
||||
Reference in New Issue
Block a user