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:
justme1968
2015-10-05 09:50:25 +00:00
parent 4635489967
commit e0f1b61e21

View File

@@ -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);