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 GitHub
parent 16f6a57924
commit 9181933619
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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