Remove support for logo in frontmatter (#29177)

This commit is contained in:
Franck Nijhof 2023-10-05 09:05:39 +02:00 committed by GitHub
parent b9548e68aa
commit 2a74c56942
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 15 deletions

View File

@ -3,11 +3,7 @@
{% assign percentage = 100.0 | times: active_installations | divided_by: site.data.analytics_data.reports_integrations | round: 1 %}
<section class="aside-module grid__item one-whole lap-one-half">
<div class='brand-logo-container section'>
{%- if page.logo -%}
<img src='/images/supported_brands/{{ page.logo }}' />
{%- else -%}
<img src='https://brands.home-assistant.io/{% if page.ha_brand %}brands{% else %}_{% endif %}/{{ domain }}/logo.png' srcset='https://brands.home-assistant.io/{% if page.ha_brand %}brands{% else %}_{% endif %}/{{ page.ha_domain }}/logo@2x.png 2x' />
{%- endif -%}
{%- if page.ha_config_flow and domain -%}
{% my config_flow_start badge domain=domain %}

View File

@ -1,7 +1,6 @@
---
title: Gogogate2 and ismartgate
description: Instructions on how to integrate Gogogate2 and iSmartGate enabled garage door covers into Home Assistant.
logo: gogogate2.png
ha_category:
- Cover
ha_release: 0.67

View File

@ -1,7 +1,6 @@
---
title: LIFX Cloud
description: Instructions on using native LIFX scenes with Home Assistant.
logo: lifx.png
ha_category:
- Scene
ha_iot_class: Cloud Push

View File

@ -3,7 +3,6 @@ title: NZBGet
description: Instructions on how to integrate NZBGet within Home Assistant.
ha_category:
- Downloading
logo: nzbget.png
ha_iot_class: Local Polling
ha_release: 0.17
ha_config_flow: true
@ -76,6 +75,6 @@ Available services:
### Service `nzbget/set_speed`
| Service data attribute | Optional | Description |
|------------------------|----------|-------------------------------------------------------------------------------------------------|
| `speed` | yes | Sets the download speed limit, specified in Kb/s. 0 disables the speed limit. Defaults to 1000. |
| Service data attribute | Optional | Description |
| ---------------------- | -------- | ----------------------------------------------------------------------------------------------- |
| `speed` | yes | Sets the download speed limit, specified in Kb/s. 0 disables the speed limit. Defaults to 1000. |

View File

@ -160,11 +160,7 @@ allComponents.pop(); // remove placeholder element at the end
var data = {
components: [],
image: function () {
if (this.logo === '') {
return `<img src="https://brands.home-assistant.io/${this.ha_brand ? "brands": "_"}/${this.domain}/logo.png" srcset="https://brands.home-assistant.io/${this.ha_brand ? "brands ": "_"}/${this.domain}/logo@2x.png 2x" loading="lazy">`;
} else {
return '<img data-src="/images/supported_brands/' + this.logo + '" loading="lazy">';
}
return `<img src="https://brands.home-assistant.io/${this.ha_brand ? "brands": "_"}/${this.domain}/logo.png" srcset="https://brands.home-assistant.io/${this.ha_brand ? "brands ": "_"}/${this.domain}/logo@2x.png 2x" loading="lazy">`;
}
};