Minor fix

Signed-off-by: Eric Bodden <eric.bodden@upb.de>
This commit is contained in:
Eric Bodden 2025-01-08 17:38:25 +01:00 committed by GitHub
parent e4992701cf
commit cae49e9260
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -802,7 +802,7 @@ actions.notificationBuilder('Hello World!').logOnly()
.withIcon('f7:bell_fill').withTag('important').send(); .withIcon('f7:bell_fill').withTag('important').send();
// Sends a notification about a temperature change ... // Sends a notification about a temperature change ...
actions.notificationBuilder(str).withIcon('oh:temperature').withTag('Temperature change').withReferenceId('livingRoom').send(); actions.notificationBuilder('new temperature: xyz').withIcon('oh:temperature').withTag('Temperature change').withReferenceId('livingRoom').send();
// ... and hides it again after 10 minutes // ... and hides it again after 10 minutes
setTimeout(() => { setTimeout(() => {
actions.notificationBuilder().hide().withReferenceId('livingRoom').send(); actions.notificationBuilder().hide().withReferenceId('livingRoom').send();