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

Bug on mobile when put in head of lovelace-fold-entity-row #60

Open
watermarkhu opened this issue Mar 3, 2022 · 0 comments
Open

Bug on mobile when put in head of lovelace-fold-entity-row #60

watermarkhu opened this issue Mar 3, 2022 · 0 comments

Comments

@watermarkhu
Copy link

The described error below is observed on mobile in combination with lovelace-fold-entity-row.

When the rgb-light-card is put in the head: of the lovelace-fold-entity-row, and every one of the color list items have the type call-service with no entity: specified for the rgb-light-card, only on mobile the rgb buttons are not clickable, but fold/unfolds the lovelace-fold-entity-row.

type: entities
entities:
  - type: custom:fold-entity-row
    head:
      colors:
        - icon_color: ' linear-gradient(15deg, #984F01, #FF880D, #FFEB8A)'
          service: input_select.select_option
          service_data:
            entity_id: input_select.scene_kitchen
            option: all_lights_on
          type: call-service
        - icon_color: 'linear-gradient(15deg, #000000, #FF880D, #FFEB8A)'
          service: input_select.select_option
          service_data:
            entity_id: input_select.scene_kitchen
            option: cooking
          type: call-service
      justify: center
      size: 44
      type: custom:rgb-light-card
    entities:
      - light.kitchen_pendant
      - light.kitchen_countertop
title: Without entity specified

This can be circumvented by adding a dummy entity: for the rgb-light-card..

type: entities
entities:
  - type: custom:fold-entity-row
    head:
      entity: 
      colors:
        - icon_color: ' linear-gradient(15deg, #984F01, #FF880D, #FFEB8A)'
          service: input_select.select_option
          service_data:
            entity_id: input_select.scene_kitchen
            option: all_lights_on
          type: call-service
        - icon_color: 'linear-gradient(15deg, #000000, #FF880D, #FFEB8A)'
          service: input_select.select_option
          service_data:
            entity_id: input_select.scene_kitchen
            option: cooking
          type: call-service
      justify: center
      size: 44
      type: custom:rgb-light-card
    entities:
      - light.kitchen_pendant
      - light.kitchen_countertop
title: Without entity specified

https://gfycat.com/jubilantmagnificentboilweevil

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