Do not show domain if equal to title with different casing (#9870)

This commit is contained in:
Paulus Schoutsen 2021-08-22 23:47:09 -07:00 committed by GitHub
parent bd8f436c1d
commit de23b2d046
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,10 @@ export class HaIntegrationHeader extends LitElement {
if (this.label) {
primary = this.label;
secondary = primary === domainName ? undefined : domainName;
secondary =
primary.toLowerCase() === domainName.toLowerCase()
? undefined
: domainName;
} else {
primary = domainName;
}