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

Card empty when state-styles defined & non-existing entity used #107

Open
Masterz69 opened this issue Dec 3, 2022 · 0 comments
Open

Card empty when state-styles defined & non-existing entity used #107

Masterz69 opened this issue Dec 3, 2022 · 0 comments

Comments

@Masterz69
Copy link

Masterz69 commented Dec 3, 2022

The problem

In following case entire card "disapperas" aka shown empty. No records in HA log.

What version of Paper Buttons Row has the issue?

1.0.1

What version of Home Assistant are you running?

2022.11.1

What version of the Frontend are you running?

20221102.1

Example YAML snippet

- type: entities
            title: OverHang
            show_header_toggle: false
            state_color: true
            entities:
              - type: custom:paper-buttons-row
                base_config:
                  icon: mdi:ceiling-light-outline
                  styles:
                    name:
                      color: var(--primary-text-color)
                  state_styles:
                    "unavailable":
                      icon:
                        color: var(--state-icon-error-color)
                buttons:
                  - - entity: switch.overhang_lights_entry
                      icon: mdi:ceiling-light-multiple-outline
                      name: Entry by
                      tap_action:
                        action: more-info
                    - entity: switch.light_overhang_entry_switch
                      icon: mdi:toggle-switch-variant-off
                      layout: state|icon|name
                      name: Switch
                      state: (
                      tap_action:
                        action: more-info
                    - entity: switch.light_overhang_entry_motion
                      icon: mdi:motion-sensor
                      name: Motion
                      tap_action:
                        action: more-info
                    - entity: switch.light_overhang_entry
                      icon: mdi:home-automation
                      layout: icon|name|state
                      name: HA/RF
                      state: )

Anything in the logs that might be useful for us?

No response

Additional information

image

entity: switch.overhang_lights_entry - non-existing entity (because mistyped).

As soon entity: switch.overhang_lights_entry OR state_styles: removed from config or changed to regular entity

  • all works fine.
@Masterz69 Masterz69 changed the title Card empty when state-styles defined & Group Helper used as button Card empty when state-styles defined & non-existing entity used Dec 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant