Skip to content

Commit

Permalink
Minor improvements for PR #374
Browse files Browse the repository at this point in the history
  • Loading branch information
albertogeniola committed May 2, 2024
1 parent ef070cf commit 3752f3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.7.2b2
0.4.7.2b3
4 changes: 2 additions & 2 deletions meross_iot/device_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ def build_meross_device_from_abilities(http_device_info: HttpDeviceInfo,
# - HubMerossDevice: to be used when dealing with Hubs.
# Unfortunately, it's not clear how we should discriminate an hub from a non-hub.
# The current implementation decides which base class to use by looking at the presence
# of 'Appliance.Digest.Hub' or 'Appliance.Hub.SubdeviceList' namespaces within the exposed abilities.
discriminating_abilities = [Namespace.SYSTEM_DIGEST_HUB.value, Namespace.HUB_SUBDEVICELIST.value]
# of 'Appliance.Hub.SubdeviceList': if exposed, we assume the device is a fully featured hub.
discriminating_abilities = [Namespace.HUB_SUBDEVICELIST.value]
base_class = BaseDevice
if any (da in device_abilities for da in discriminating_abilities):
_LOGGER.warning(f"Device {http_device_info.dev_name} ({http_device_info.device_type}, "
Expand Down

0 comments on commit 3752f3c

Please sign in to comment.