OpenAI: Ignore devices without a name (#87558)

Ignore devices without a name
This commit is contained in:
Paulus Schoutsen 2023-02-06 23:57:08 -05:00 committed by GitHub
parent ea4e2ab4aa
commit 400c88a1cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -8,7 +8,7 @@ An overview of the areas and the devices in this smart home:
{%- for area in areas %}
{%- set area_info = namespace(printed=false) %}
{%- for device in area_devices(area.name) -%}
{%- if not device_attr(device, "disabled_by") and not device_attr(device, "entry_type") %}
{%- if not device_attr(device, "disabled_by") and not device_attr(device, "entry_type") and device_attr(device, "name") %}
{%- if not area_info.printed %}
{{ area.name }}: