mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 10:46:53 +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:
parent
4a98d4d9a3
commit
9c7f496b94
@ -1281,6 +1281,11 @@ alexa_Attr($$$)
|
|||||||
|
|
||||||
alexa_startAlexaFHEM($hash);
|
alexa_startAlexaFHEM($hash);
|
||||||
|
|
||||||
|
if( $cmd eq "set" && $orig ne $attrVal ) {
|
||||||
|
$attr{$name}{$attrName} = $attrVal;
|
||||||
|
return "stored obfuscated auth data";
|
||||||
|
}
|
||||||
|
|
||||||
} elsif( $attrName eq 'alexaFHEM-host' ) {
|
} elsif( $attrName eq 'alexaFHEM-host' ) {
|
||||||
$attr{$name}{$attrName} = $attrVal;
|
$attr{$name}{$attrName} = $attrVal;
|
||||||
|
|
||||||
@ -1295,6 +1300,10 @@ alexa_Attr($$$)
|
|||||||
|
|
||||||
|
|
||||||
if( $cmd eq 'set' ) {
|
if( $cmd eq 'set' ) {
|
||||||
|
if( $orig ne $attrVal ) {
|
||||||
|
$attr{$name}{$attrName} = $attrVal;
|
||||||
|
return "stored modified value";
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
delete $attr{$name}{$attrName};
|
delete $attr{$name}{$attrName};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user