Add Denon brand (#79230)
This commit is contained in:
parent
b43e19a0c1
commit
e3ed4eeb76
3 changed files with 26 additions and 17 deletions
|
@ -38,7 +38,7 @@ def _validate_brand(
|
|||
if not brand.integrations and not brand.iot_standards:
|
||||
config.add_error(
|
||||
"brand",
|
||||
f"Invalid brand file {brand.path.name}: At least one of integrations or "
|
||||
f"{brand.path.name}: At least one of integrations or "
|
||||
"iot_standards must be non-empty",
|
||||
)
|
||||
|
||||
|
@ -47,8 +47,7 @@ def _validate_brand(
|
|||
if sub_integration not in integrations:
|
||||
config.add_error(
|
||||
"brand",
|
||||
f"Invalid brand file {brand.path.name}: Can't add non core domain "
|
||||
f"'{sub_integration}' to 'integrations'",
|
||||
f"{brand.path.name}: References unknown integration {sub_integration}",
|
||||
)
|
||||
|
||||
if brand.domain in integrations and (
|
||||
|
@ -56,7 +55,7 @@ def _validate_brand(
|
|||
):
|
||||
config.add_error(
|
||||
"brand",
|
||||
f"Invalid brand file {brand.path.name}: Brand '{brand.brand['domain']}' "
|
||||
f"{brand.path.name}: Brand '{brand.brand['domain']}' "
|
||||
f"is an integration but is missing in the brand's 'integrations' list'",
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue