SMUtils.pm: update to version 1.6.0
git-svn-id: https://svn.fhem.de/fhem/trunk@22823 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -40,7 +40,7 @@ use FHEM::SynoModules::ErrCodes qw(:all); # Erro
|
|||||||
use GPUtils qw( GP_Import GP_Export );
|
use GPUtils qw( GP_Import GP_Export );
|
||||||
use Carp qw(croak carp);
|
use Carp qw(croak carp);
|
||||||
|
|
||||||
use version; our $VERSION = version->declare('1.5.0');
|
use version; our $VERSION = version->declare('1.6.0');
|
||||||
|
|
||||||
use Exporter ('import');
|
use Exporter ('import');
|
||||||
our @EXPORT_OK = qw(
|
our @EXPORT_OK = qw(
|
||||||
@@ -56,6 +56,7 @@ our @EXPORT_OK = qw(
|
|||||||
logout
|
logout
|
||||||
setActiveToken
|
setActiveToken
|
||||||
delActiveToken
|
delActiveToken
|
||||||
|
delCallParts
|
||||||
setReadingErrorNone
|
setReadingErrorNone
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -634,6 +635,8 @@ sub delActiveToken {
|
|||||||
|
|
||||||
$hash->{HELPER}{ACTIVE} = "off";
|
$hash->{HELPER}{ACTIVE} = "off";
|
||||||
|
|
||||||
|
delCallParts ($hash);
|
||||||
|
|
||||||
if (AttrVal($name,"debugactivetoken",0)) {
|
if (AttrVal($name,"debugactivetoken",0)) {
|
||||||
Log3($name, 1, "$name - Active-Token deleted by OPMODE: $hash->{OPMODE}");
|
Log3($name, 1, "$name - Active-Token deleted by OPMODE: $hash->{OPMODE}");
|
||||||
}
|
}
|
||||||
@@ -641,6 +644,19 @@ sub delActiveToken {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#############################################################################################
|
||||||
|
# lösche Helper der erstellten CALL / ACALL Teile
|
||||||
|
# CALL / ACALL werden bei auslösen einer Aktion durch Set/Get erstellt
|
||||||
|
#############################################################################################
|
||||||
|
sub delCallParts {
|
||||||
|
my $hash = shift;
|
||||||
|
|
||||||
|
delete $hash->{HELPER}{CALL};
|
||||||
|
delete $hash->{HELPER}{ACALL};
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
#############################################################################################
|
#############################################################################################
|
||||||
# Readings Error & Errorcode auf
|
# Readings Error & Errorcode auf
|
||||||
# Standard "none" setzen
|
# Standard "none" setzen
|
||||||
|
|||||||
Reference in New Issue
Block a user