fix FHEM crash
This commit is contained in:
parent
8acadea5bf
commit
e8c553161c
@ -58,7 +58,7 @@ package main;
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
my $version = "1.4.1";
|
my $version = "1.4.2";
|
||||||
|
|
||||||
|
|
||||||
sub GardenaSmartBridge_Initialize($) {
|
sub GardenaSmartBridge_Initialize($) {
|
||||||
@ -470,7 +470,7 @@ sub ErrorHandling($$$) {
|
|||||||
|
|
||||||
readingsBulkUpdate( $dhash, "state", "the command is processed",
|
readingsBulkUpdate( $dhash, "state", "the command is processed",
|
||||||
1 );
|
1 );
|
||||||
InternalTimer( gettimeofday() + 5, "GardenaSmartBridge::getDevices", $hash, 1 );
|
InternalTimer( gettimeofday() + 5, "FHEM::GardenaSmartBridge::getDevices", $hash, 1 );
|
||||||
|
|
||||||
}
|
}
|
||||||
elsif ( $param->{code} != 200 ) {
|
elsif ( $param->{code} != 200 ) {
|
||||||
|
@ -58,7 +58,7 @@ package main;
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
my $version = "1.4.1";
|
my $version = "1.4.2";
|
||||||
|
|
||||||
sub GardenaSmartDevice_Initialize($) {
|
sub GardenaSmartDevice_Initialize($) {
|
||||||
|
|
||||||
@ -558,6 +558,14 @@ sub WriteReadings($$) {
|
|||||||
)
|
)
|
||||||
) if ( AttrVal( $name, 'model', 'unknown' ) eq 'ic24' );
|
) 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 );
|
readingsEndUpdate( $hash, 1 );
|
||||||
|
|
||||||
Log3 $name, 4, "GardenaSmartDevice ($name) - readings was written}";
|
Log3 $name, 4, "GardenaSmartDevice ($name) - readings was written}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user