Skip to content

Commit

Permalink
Filters when SwitchType not set
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumezin committed Apr 13, 2019
1 parent 07d59a5 commit 5f78505
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Plugin.pm
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@ sub _filterDomoticzSupportedDevice {
return SWITCH_TYPE_TEMPERATURE;
}

if (!defined $elem->{'SwitchType'}) {
return SWITCH_TYPE_NONE;
}

if (!defined $elem->{'SwitchTypeVal'}) {
return SWITCH_TYPE_NONE;
}
Expand Down
2 changes: 1 addition & 1 deletion install.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
<minVersion>7.4.0</minVersion>
</targetApplication>
<type>2</type>
<version>1.1.6</version>
<version>1.1.7</version>
</extension>

0 comments on commit 5f78505

Please sign in to comment.