37_echodevice.pm: bugfixes
git-svn-id: https://svn.fhem.de/fhem/trunk@22845 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -2,6 +2,9 @@
|
|||||||
#
|
#
|
||||||
##############################################
|
##############################################
|
||||||
#
|
#
|
||||||
|
# 2020.09.25 v0.1.9
|
||||||
|
# - BUG: Not a HASH reference at ./FHEM/37_echodevice.pm line 2687
|
||||||
|
#
|
||||||
# 2020.05.06 v0.1.8
|
# 2020.05.06 v0.1.8
|
||||||
# - BUG: Zu viele Loginfos bei set "NPM_login refresh"
|
# - BUG: Zu viele Loginfos bei set "NPM_login refresh"
|
||||||
#
|
#
|
||||||
@@ -392,7 +395,7 @@ use Time::Piece;
|
|||||||
use lib ('./FHEM/lib', './lib');
|
use lib ('./FHEM/lib', './lib');
|
||||||
use MP3::Info;
|
use MP3::Info;
|
||||||
|
|
||||||
my $ModulVersion = "0.1.8";
|
my $ModulVersion = "0.1.9";
|
||||||
my $AWSPythonVersion = "0.0.3";
|
my $AWSPythonVersion = "0.0.3";
|
||||||
my $NPMLoginTyp = "unbekannt";
|
my $NPMLoginTyp = "unbekannt";
|
||||||
|
|
||||||
@@ -2683,7 +2686,7 @@ sub echodevice_Parse($$$) {
|
|||||||
my $json = eval { JSON->new->utf8(0)->decode($data) };
|
my $json = eval { JSON->new->utf8(0)->decode($data) };
|
||||||
|
|
||||||
if($msgtype eq "activities") {
|
if($msgtype eq "activities") {
|
||||||
|
if (ref($json) eq "HASH") {
|
||||||
if(defined($json->{activities}) && ref($json->{activities}) eq "ARRAY") {
|
if(defined($json->{activities}) && ref($json->{activities}) eq "ARRAY") {
|
||||||
foreach my $card (@{$json->{activities}}) {
|
foreach my $card (@{$json->{activities}}) {
|
||||||
# Device ID herausfiltern
|
# Device ID herausfiltern
|
||||||
@@ -2747,6 +2750,7 @@ sub echodevice_Parse($$$) {
|
|||||||
$hash->{helper}{echodevice_refreshvoice} = 0;
|
$hash->{helper}{echodevice_refreshvoice} = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
elsif($msgtype eq "account") {
|
elsif($msgtype eq "account") {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user