1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Add Apple brand (#79227)

This commit is contained in:
Paulus Schoutsen
2022-09-28 16:21:09 -04:00
committed by GitHub
parent b49d499ab6
commit 62c114e849
4 changed files with 42 additions and 28 deletions

View File

@@ -51,10 +51,8 @@ def _validate_brand(
f"'{sub_integration}' to 'integrations'",
)
if (
brand.domain in integrations
and not brand.integrations
or brand.domain not in brand.integrations
if brand.domain in integrations and (
not brand.integrations or brand.domain not in brand.integrations
):
config.add_error(
"brand",