mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 10:46:53 +00:00
fixed uninitialized value warning
git-svn-id: https://svn.fhem.de/fhem/trunk@3186 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
e7834696ff
commit
8166806b9b
@ -207,8 +207,10 @@ HUEBridge_GetUpdate($)
|
||||
if( defined( $result->{swupdate} ) ) {
|
||||
my $txt = $result->{swupdate}->{text};
|
||||
readingsSingleUpdate($hash, "swupdate", $txt, defined($hash->{LOCAL} ? 0 : 1)) if( $txt && $txt ne ReadingsVal($name,"swupdate","") );
|
||||
$hash->{STATE} = "update done" if( $result->{swupdate}->{updatestate} == 0 && $hash->{updatestate} >= 2 );
|
||||
$hash->{STATE} = "update failed" if( $result->{swupdate}->{updatestate} == 2 && $hash->{updatestate} == 3 );
|
||||
if( defined($hash->{updatestate}) ){
|
||||
$hash->{STATE} = "update done" if( $result->{swupdate}->{updatestate} == 0 && $hash->{updatestate} >= 2 );
|
||||
$hash->{STATE} = "update failed" if( $result->{swupdate}->{updatestate} == 2 && $hash->{updatestate} == 3 );
|
||||
}
|
||||
|
||||
$hash->{updatestate} = $result->{swupdate}->{updatestate};
|
||||
} elsif ( defined( $hash->{swupdate} ) ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user