2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

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:
justme-1968 2019-01-13 09:07:28 +00:00
parent 4a98d4d9a3
commit 9c7f496b94

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};