fix FHEM crash

This commit is contained in:
Marko Oldenburg 2019-03-26 11:14:52 +01:00
parent 8acadea5bf
commit e8c553161c
2 changed files with 11 additions and 3 deletions

View File

@ -58,7 +58,7 @@ package main;
use strict;
use warnings;
my $version = "1.4.1";
my $version = "1.4.2";
sub GardenaSmartBridge_Initialize($) {
@ -470,7 +470,7 @@ sub ErrorHandling($$$) {
readingsBulkUpdate( $dhash, "state", "the command is processed",
1 );
InternalTimer( gettimeofday() + 5, "GardenaSmartBridge::getDevices", $hash, 1 );
InternalTimer( gettimeofday() + 5, "FHEM::GardenaSmartBridge::getDevices", $hash, 1 );
}
elsif ( $param->{code} != 200 ) {

View File

@ -58,7 +58,7 @@ package main;
use strict;
use warnings;
my $version = "1.4.1";
my $version = "1.4.2";
sub GardenaSmartDevice_Initialize($) {
@ -557,6 +557,14 @@ sub WriteReadings($$) {
)
)
) if ( AttrVal( $name, 'model', 'unknown' ) eq 'ic24' );
readingsBulkUpdate(
$hash, 'state',
ReadingsVal(
$name, 'power-power_timer',
'no info from power-timer'
)
) if ( AttrVal( $name, 'model', 'unknown' ) eq 'power' );
readingsEndUpdate( $hash, 1 );