2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-17 11:26:03 +00:00

36_Shelly.pm: Bugfix Version 1.21

git-svn-id: https://svn.fhem.de/fhem/trunk@17401 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
phenning 2018-09-25 16:12:32 +00:00
parent 55545e4a8a
commit 899753bd5f

View File

@ -38,7 +38,7 @@ use vars qw{%attr %defs};
sub Log($$);
#-- globals on start
my $version = "1.2";
my $version = "1.21";
#-- these we may get on request
my %gets = (
@ -658,7 +658,7 @@ sub Shelly_Set ($@) {
my $hascloud = $jhash->{'cloud'}{'enabled'};
if( $hascloud ){
my $hasconn = ($jhash->{'cloud'}{'connected'}) ? "connected" : "not connected";
readingsBulkUpdateIfChanged($hash,"cloud","enabled($$hasconn)");
readingsBulkUpdateIfChanged($hash,"cloud","enabled($hasconn)");
}else{
readingsBulkUpdateIfChanged($hash,"cloud","disabled");
}