Fix ZHA quirk ID custom entities matching all devices (#105184)

This commit is contained in:
TheJulianJES 2023-12-07 07:15:31 +01:00 committed by Franck Nijhof
parent 054ede9663
commit c035ffb06e
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3

View File

@ -253,7 +253,7 @@ class MatchRule:
else:
matches.append(model in self.models)
if self.quirk_ids and quirk_id:
if self.quirk_ids:
if callable(self.quirk_ids):
matches.append(self.quirk_ids(quirk_id))
else: