Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
Nall-chan committed Jan 22, 2024
1 parent f11b328 commit 97e3656
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions Tapo Hub Device/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,16 +154,16 @@ protected function SetVariables(array $Values)
}

foreach ($this->GetModuleIdents() as $Ident => $VarParams) {
if (!array_key_exists($Ident, $Values)) {
if (!array_key_exists(\TpLink\ReceiveFunction, $VarParams)) {
continue;
}
if (array_key_exists(\TpLink\ReceiveFunction, $VarParams)) {
$Values[$Ident] = $this->{$VarParams[\TpLink\ReceiveFunction]}($Values);
if (is_null($Values[$Ident])) {
continue;
}
} else {
if (!array_key_exists($Ident, $Values)) {
continue;
}
}

$this->MaintainVariable(
$Ident,
$this->Translate($VarParams[\TpLink\IPSVarName]),
Expand Down
10 changes: 5 additions & 5 deletions libs/TapoDevice.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,16 +221,16 @@ protected function SetVariables(array $Values)
}
}
foreach ($this->GetModuleIdents() as $Ident => $VarParams) {
if (!array_key_exists($Ident, $Values)) {
if (!array_key_exists(\TpLink\ReceiveFunction, $VarParams)) {
continue;
}
if (array_key_exists(\TpLink\ReceiveFunction, $VarParams)) {
$Values[$Ident] = $this->{$VarParams[\TpLink\ReceiveFunction]}($Values);
if (is_null($Values[$Ident])) {
continue;
}
} else {
if (!array_key_exists($Ident, $Values)) {
continue;
}
}

$this->MaintainVariable(
$IdentPrefix . $Ident,
$NamePrefix . $this->Translate($VarParams[\TpLink\IPSVarName]),
Expand Down

0 comments on commit 97e3656

Please sign in to comment.