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

Regression for attribute's format in entities card #9961

Closed
3 tasks done
mbo18 opened this issue Sep 5, 2021 · 0 comments · Fixed by #9965
Closed
3 tasks done

Regression for attribute's format in entities card #9961

mbo18 opened this issue Sep 5, 2021 · 0 comments · Fixed by #9965
Labels
Bug Current Bug in UI - Extra Attention

Comments

@mbo18
Copy link
Contributor

mbo18 commented Sep 5, 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

format for type:attribute seems to be no more supported by the visual editor for entities card.

format is in the documentation for attribute, see: https://www.home-assistant.io/lovelace/entities/#attribute

Describe the behavior you expected

format should be valid and should not raise an error in the editor (works fine when editing raw config)

Steps to reproduce the issue

  1. edit or add an entities card
  2. add an attribute:
entities:
  - type: attribute
    entity: sun.sun
    attribute: next_rising
    name: Levé du soleil
  1. add format to it:
entities:
  - type: attribute
    entity: sun.sun
    attribute: next_rising
    name: Levé du soleil
    format: datetime

editor then display a lot of errors:

Configuration errors detected:

Required key "entities.0.tap_action" is missing.
Required key "entities.0.tap_action" is missing.
Required key "entities.0.tap_action" is missing.
Required key "entities.0.tap_action" is missing.
Required key "entities.0.tap_action" is missing.
Required key "entities.0.tap_action" is missing.
Required key "entities.0.view" is missing.
Required key "entities.0.view" is missing.
Required key "entities.0.view" is missing.
Required key "entities.0.conditions" is missing.
Required key "entities.0.url" is missing.
Required key "entities.0.entities" is missing.
Required key "entities.0.service" is missing.
Required key "entities.0.text" 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.tap_action" is missing.
...

What version of Home Assistant Core has the issue?

core-2021.9.3

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

Firefox and Safari latest release

Which operating system are you using to run this browser?

macOS Catalina

State of relevant entities

No response

Problem-relevant frontend configuration

entities:
  - type: attribute
    entity: sun.sun
    attribute: next_rising
    name: Levé du soleil
    format: datetime

Javascript errors shown in your browser console/inspector

No response

Additional information

Could you also add support for icon: for type:attribute?

It works when editing raw config but is not supported by the visual editor. See: #9959 or #9586

@mbo18 mbo18 added the Bug Current Bug in UI - Extra Attention label Sep 5, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 6, 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

Successfully merging a pull request may close this issue.

1 participant