Skip to content

Commit d90fe51

Browse files
committed
Return empty Much() when encountering an unknown class
1 parent 1f33b5e commit d90fe51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise/helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ def _appliance_info_finder(self, appl: Munch, appliance: etree.Element) -> Munch
253253
appl.zigbee_mac = module_data["zigbee_mac_address"]
254254
return appl
255255
case _: # pragma: no cover
256-
return appl
256+
return Munch()
257257

258258
def _appl_gateway_info(self, appl: Munch, appliance: etree.Element) -> Munch:
259259
"""Helper-function for _appliance_info_finder()."""

0 commit comments

Comments
 (0)