Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entities card schema failing #9461

Closed
3 tasks done
tomlut opened this issue Jun 24, 2021 · 4 comments
Closed
3 tasks done

Entities card schema failing #9461

tomlut opened this issue Jun 24, 2021 · 4 comments
Labels
Bug Current Bug in UI - Extra Attention

Comments

@tomlut
Copy link

tomlut commented Jun 24, 2021

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.

Describe the issue you are experiencing

When trying to add an entities card with attribute rows I get the following errors that prevent the card from being saved:

Configuration errors detected:

    Required key "entities.1.tap_action" is missing.
    Required key "entities.1.tap_action" is missing.
    Required key "entities.1.tap_action" is missing.
    Required key "entities.1.tap_action" is missing.
    Required key "entities.1.tap_action" is missing.
    Required key "entities.1.view" is missing.
    Required key "entities.1.view" is missing.
    Required key "entities.1.view" is missing.
    Required key "entities.1.conditions" is missing.
    Required key "entities.1.url" is missing.
    Required key "entities.1.entities" is missing.
    Required key "entities.1.service" is missing.
    Required key "entities.1.text" is missing.
    Required key "entities.2.tap_action" is missing.
    Required key "entities.2.tap_action" is missing.
    Required key "entities.2.tap_action" is missing.
    Required key "entities.2.tap_action" is missing.
    Required key "entities.2.tap_action" is missing.
    Required key "entities.2.view" is missing.
    Required key "entities.2.view" is missing.
    Required key "entities.2.view" is missing.
    Required key "entities.2.conditions" is missing.
    Required key "entities.2.url" is missing.
    Required key "entities.2.entities" is missing.
    Required key "entities.2.service" is missing.
    Required key "entities.2.text" is missing.
    Required key "entities.3.tap_action" is missing.
    Required key "entities.3.tap_action" is missing.
    Required key "entities.3.tap_action" is missing.
    Required key "entities.3.tap_action" is missing.
    Required key "entities.3.tap_action" is missing.
    Required key "entities.3.view" is missing.
    Required key "entities.3.view" is missing.
    Required key "entities.3.view" is missing.
    Required key "entities.3.conditions" is missing.
    Required key "entities.3.url" is missing.
    Required key "entities.3.entities" is missing.
    Required key "entities.3.service" is missing.
    Required key "entities.3.text" is missing.
    Required key "entities.4.tap_action" is missing.
    Required key "entities.4.tap_action" is missing.
    Required key "entities.4.tap_action" is missing.
    Required key "entities.4.tap_action" is missing.
    Required key "entities.4.tap_action" is missing.
    Required key "entities.4.view" is missing.
    Required key "entities.4.view" is missing.
    Required key "entities.4.view" is missing.
    Required key "entities.4.conditions" is missing.
    Required key "entities.4.url" is missing.
    Required key "entities.4.entities" is missing.
    Required key "entities.4.service" is missing.
    Required key "entities.4.text" is missing.
    Required key "entities.5.tap_action" is missing.
    Required key "entities.5.tap_action" is missing.
    Required key "entities.5.tap_action" is missing.
    Required key "entities.5.tap_action" is missing.
    Required key "entities.5.tap_action" is missing.
    Required key "entities.5.view" is missing.
    Required key "entities.5.view" is missing.
    Required key "entities.5.view" is missing.
    Required key "entities.5.conditions" is missing.
    Required key "entities.5.url" is missing.
    Required key "entities.5.entities" is missing.
    Required key "entities.5.service" is missing.
    Required key "entities.5.text" is missing.

Describe the behavior you expected

To be able to save the card.

Steps to reproduce the issue

  1. add config listed below to a manual card
  2. attempt to save

...

What version of Home Assistant Core has the issue?

core-2021.6.6

What was the last working version of Home Assistant Core?

2021.5?

In which browser are you experiencing the issue with?

Google Chrome 91.0.4472.114, Firefox 89.0.2

Which operating system are you using to run this browser?

Windows 10

State of relevant entities

No response

Problem-relevant frontend configuration

entities:
  - entity: sensor.samba_backup
    icon: mdi:file-replace-outline
    name: Backup Status
  - attribute: backups_local
    entity: sensor.samba_backup
    icon: mdi:file-outline
    name: Local Backups
    type: attribute
  - attribute: backups_remote
    entity: sensor.samba_backup
    icon: mdi:file-move-outline
    name: Remote Backups
    type: attribute
  - attribute: total_backups_succeeded
    entity: sensor.samba_backup
    icon: mdi:file-check-outline
    name: Succeded Backups
    type: attribute
  - attribute: total_backups_failed
    entity: sensor.samba_backup
    icon: mdi:file-cancel-outline
    name: Failed Backups
    type: attribute
  - attribute: last_backup
    entity: sensor.samba_backup
    icon: mdi:file-clock-outline
    name: Last Backup
    type: attribute
show_header_toggle: false
title: Samba Backup
type: entities

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

Removing the icon: option from the attribute type rows allows the card to be saved.

@tomlut tomlut added the Bug Current Bug in UI - Extra Attention label Jun 24, 2021
@spacegaier
Copy link
Member

That behaviour seems to match the documentation. icon is not expected or supported for an attribute row currently: https://www.home-assistant.io/lovelace/entities/#attribute

@tomlut
Copy link
Author

tomlut commented Jun 25, 2021

You're right. I guess I had better open a feature request instead as this can't be applied with customize either. The only way would be to create template sensors for the attributes.

Interesting fact: I have an entities card with attribute icons that was created before this schema test and it works, it shows the errors when I try to edit it now but it still saves and shows the icons.

@tomlut tomlut closed this as completed Jun 25, 2021
@spacegaier
Copy link
Member

Interesting fact: I have an entities card with attribute icons that was created before this schema test and it works, it shows the errors when I try to edit it now but it still saves and shows the icons.

Sounds like an accidental feature 😄

@tomlut
Copy link
Author

tomlut commented Jun 25, 2021

Shouldn't be too hard to add to the schema then? 😄

Feature request: #9470

@github-actions github-actions bot locked and limited conversation to collaborators Jul 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Current Bug in UI - Extra Attention
Projects
None yet
Development

No branches or pull requests

2 participants