Skip to content

Commit

Permalink
Fix docs comment regarding TuyaEnchantableCluster (#2555)
Browse files Browse the repository at this point in the history
The `TuyaSmartRemoteOnOffCluster` cluster class does not (and can not) inherit `TuyaEnchantableCluster`, as it's not bound due to changing the `ep_attribute`.
  • Loading branch information
TheJulianJES authored Aug 31, 2023
1 parent 47c2ef5 commit 675fde8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zhaquirks/tuya/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ class TuyaEnchantableCluster(CustomCluster):
- clusters which would be bound, but that changed their ep_attribute
Make sure to add a subclass of TuyaEnchantableCluster to the quirk replacement. Tests will fail if this is not done.
Classes like TuyaOnOff, TuyaZBOnOffAttributeCluster, TuyaSmartRemoteOnOffCluster already inherit from this class.
Classes like TuyaOnOff, TuyaZBOnOffAttributeCluster, TuyaNoBindPowerConfigurationCluster inherit from this class.
"""

async def bind(self):
Expand Down

0 comments on commit 675fde8

Please sign in to comment.