diff --git a/fhem/CHANGED b/fhem/CHANGED index b5feb70d2..39f68b355 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,5 +1,6 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. + - bugfix: 70_PushNotifier: - require Try::Tiny - feature: 70_Jabber: - Added OTR (Off the Record) end to end encryption - Added MUC (Multi-User-Channel) joining and handling - change: 74_AMAD: improved translation englisch diff --git a/fhem/FHEM/70_PushNotifier.pm b/fhem/FHEM/70_PushNotifier.pm index e894b83d1..d133bded1 100644 --- a/fhem/FHEM/70_PushNotifier.pm +++ b/fhem/FHEM/70_PushNotifier.pm @@ -52,6 +52,10 @@ PushNotifier_Define($$) return "$deviceID is not a valid regex for "; } + if (!eval { require Try::Tiny }) { + return "Perl module Try::Tiny not installed but is needed by this module. Please install it first (e.g. \"cpan -i Try::Tiny\")"; + } + $hash->{STATE} = 'Initialized'; if(defined($apiToken) && defined($app)&& defined($user)&& defined($passwd)&& defined($deviceID)) {