39_alexa.pm: fixed setting of alexaFHEM-auth

git-svn-id: https://svn.fhem.de/fhem/trunk@18231 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2019-01-13 09:07:28 +00:00
parent e889b2f47c
commit c2a0fc0e43

View File

@@ -1281,6 +1281,11 @@ alexa_Attr($$$)
alexa_startAlexaFHEM($hash);
if( $cmd eq "set" && $orig ne $attrVal ) {
$attr{$name}{$attrName} = $attrVal;
return "stored obfuscated auth data";
}
} elsif( $attrName eq 'alexaFHEM-host' ) {
$attr{$name}{$attrName} = $attrVal;
@@ -1295,6 +1300,10 @@ alexa_Attr($$$)
if( $cmd eq 'set' ) {
if( $orig ne $attrVal ) {
$attr{$name}{$attrName} = $attrVal;
return "stored modified value";
}
} else {
delete $attr{$name}{$attrName};