Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
1.1.0 (#59)
Browse files Browse the repository at this point in the history
Enable root devices as entities (#58)

Removed code which filtered out HomeSeer root devices; while these devices are not used by the Z-Wave PI for any control or status purpose, they appear to be used by other PIs (e.g. Insteon) for control/status. Enabling them will have no drawback for Z-Wave (an additional useless entity will be created).
  • Loading branch information
marthoc authored Aug 14, 2021
1 parent 7648949 commit 433b9a7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions custom_components/homeseer/homeseer.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,6 @@ def _get_ha_platform_for_homeseer_device(
This method ensures that a HomeSeer device will only ever be represented in one platform,
and filters out devices as required.
"""
# Filter out HomeSeer "Root" devices; they will be used for device info at the entity level only.
if device.relationship == RELATIONSHIP_ROOT:
_LOGGER.debug(
f"Device ref {device.ref} is a root device, "
f"not creating an entity for this device"
)
return None

# Filter out devices from interfaces not selected during the Config Flow.
iname = (
device.interface_name
Expand Down

0 comments on commit 433b9a7

Please sign in to comment.