Skip to content

Commit

Permalink
Fix quirk_applied check only working for v1 quirks (#232)
Browse files Browse the repository at this point in the history
Check for instance of `BaseCustomDevice`

`CustomDeviceV2` no longer extends `CustomDevice`, only `BaseCustomDevice`, so we need to check that here.
  • Loading branch information
TheJulianJES authored Oct 11, 2024
1 parent be11d88 commit 01d0da4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zha/zigbee/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def __init__(
self._gateway: Gateway = _gateway
self._zigpy_device: ZigpyDevice = zigpy_device
self.quirk_applied: bool = isinstance(
self._zigpy_device, zigpy.quirks.CustomDevice
self._zigpy_device, zigpy.quirks.BaseCustomDevice
)
self.quirk_class: str = (
f"{self._zigpy_device.__class__.__module__}."
Expand Down

0 comments on commit 01d0da4

Please sign in to comment.