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_vertical_button] add button.press as service #1410

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

MastrUsr
Copy link
Contributor

@MastrUsr MastrUsr commented Nov 9, 2023

HA can have buttons, not just input_buttons..

(This is my first time, please be patient with me).

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue:
  • Link to documentation pull request:

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • I have followed the contribution guidelines
    • This PR is for a custom-card or documentation change and therefore directed to the main branch.
    • This PR is for a official card or any other directly to the integration related change and therefore directed to the release branch.

HA can have buttons, not just input_buttons.. 

(This is my first time, please be patient with me).
@MastrUsr
Copy link
Contributor Author

I have no idea what I'm doing 😂

Anyways... The card_vertical_button.yaml needs the addition of if( entity.entity_id.startsWith("button.") ) return "button.press"; on line 83.

@basbruss basbruss changed the base branch from main to release November 17, 2023 14:41
@basbruss basbruss merged commit 5b7118c into UI-Lovelace-Minimalist:release Nov 17, 2023
1 of 3 checks passed
@basbruss basbruss changed the title Update card_vertical_button.yaml [card_vertical_button] add button.press as service Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants