mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 14:16:42 +00:00
31_HUEDevice.pm: fix for empty sensor timestamp
git-svn-id: https://svn.fhem.de/fhem/trunk@9381 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
308bbd6f45
commit
755453ae2b
@ -846,8 +846,8 @@ HUEDevice_Parse($$)
|
||||
if( $hash->{helper}->{devtype} eq 'S' ) {
|
||||
|
||||
if( $result->{state} ) {
|
||||
substr( $result->{state}{lastupdated}, 10, 1, ' ' );
|
||||
if( $result->{state}{lastupdated} ne 'none' ) {
|
||||
substr( $result->{state}{lastupdated}, 10, 1, ' ' );
|
||||
if( $result->{state}{buttonevent}
|
||||
&& ReadingsTimestamp($name,"state","") ne $result->{state}{lastupdated} ) {
|
||||
readingsBeginUpdate($hash);
|
||||
|
Loading…
x
Reference in New Issue
Block a user