Skip to content

Commit

Permalink
Remove some entities that are not supported by SmartLink
Browse files Browse the repository at this point in the history
  • Loading branch information
Breina committed Jul 27, 2024
1 parent 684c252 commit e1eddb3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom_components/powertag_gateway/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def supports_feature_set(feature_class: FeatureClass) -> bool:

@staticmethod
def supports_gateway(type_of_gateway: TypeOfGateway) -> bool:
return type_of_gateway in [TypeOfGateway.SMARTLINK, TypeOfGateway.POWERTAG_LINK, TypeOfGateway.PANEL_SERVER]
return type_of_gateway in [TypeOfGateway.POWERTAG_LINK, TypeOfGateway.PANEL_SERVER]


class PowerTagTotalActiveEnergyDelivered(WirelessDeviceEntity, SensorEntity):
Expand All @@ -307,7 +307,7 @@ def supports_feature_set(feature_class: FeatureClass) -> bool:

@staticmethod
def supports_gateway(type_of_gateway: TypeOfGateway) -> bool:
return type_of_gateway in [TypeOfGateway.SMARTLINK, TypeOfGateway.POWERTAG_LINK, TypeOfGateway.PANEL_SERVER]
return type_of_gateway in [TypeOfGateway.POWERTAG_LINK, TypeOfGateway.PANEL_SERVER]


class PowerTagPartialActiveEnergyDeliveredPerPhase(WirelessDeviceEntity, SensorEntity):
Expand Down Expand Up @@ -387,7 +387,7 @@ def supports_feature_set(feature_class: FeatureClass) -> bool:

@staticmethod
def supports_gateway(type_of_gateway: TypeOfGateway) -> bool:
return type_of_gateway in [TypeOfGateway.SMARTLINK, TypeOfGateway.POWERTAG_LINK, TypeOfGateway.PANEL_SERVER]
return type_of_gateway in [TypeOfGateway.POWERTAG_LINK, TypeOfGateway.PANEL_SERVER]


class PowerTagTotalActiveEnergyReceived(WirelessDeviceEntity, SensorEntity):
Expand All @@ -409,7 +409,7 @@ def supports_feature_set(feature_class: FeatureClass) -> bool:

@staticmethod
def supports_gateway(type_of_gateway: TypeOfGateway) -> bool:
return type_of_gateway in [TypeOfGateway.SMARTLINK, TypeOfGateway.POWERTAG_LINK, TypeOfGateway.PANEL_SERVER]
return type_of_gateway in [TypeOfGateway.POWERTAG_LINK, TypeOfGateway.PANEL_SERVER]


class PowerTagPartialActiveEnergyReceivedPerPhase(WirelessDeviceEntity, SensorEntity):
Expand Down

0 comments on commit e1eddb3

Please sign in to comment.