From 0643b3af3827e90bc151f736a48c7434bfea8d89 Mon Sep 17 00:00:00 2001 From: Dominik Meyer Date: Fri, 1 Mar 2024 21:00:08 +0100 Subject: [PATCH] ADD: set defaultTopic as attribute - the attribute has already been there - just added documentation CLOSES: #6 TIME: 10m --- FHEM/98_NTFY_CLIENT.pm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/FHEM/98_NTFY_CLIENT.pm b/FHEM/98_NTFY_CLIENT.pm index 6256b7a..1023bf2 100644 --- a/FHEM/98_NTFY_CLIENT.pm +++ b/FHEM/98_NTFY_CLIENT.pm @@ -113,7 +113,8 @@ sub NTFY_CLIENT_Initialize $hash->{AttrFn} = 'NTFY_Attr'; $hash->{ParseFn} = 'NTFY_Parse'; $hash->{DeleteFn} = 'NTFY_Delete'; - $hash->{AttrList} = "defaultTopic " + $hash->{AttrList} = "defaultTopic " . + "" . $readingFnAttributes; } @@ -372,6 +373,8 @@ sub NTFY_Set sub NTFY_Attr { my ( $cmd, $name, $aName, $aValue ) = @_; + + return undef; } @@ -517,7 +520,12 @@ sub NTFY_Delete

Attributes

- No own attributes supported yet. +
+
defaultTopic
+
+ Sets the default topic used if no topic is provided within the publish string. +
+
=end html