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

Add convenience function for get_scene_by_name #105

Closed
Leggin opened this issue Dec 6, 2024 · 2 comments · Fixed by #107
Closed

Add convenience function for get_scene_by_name #105

Leggin opened this issue Dec 6, 2024 · 2 comments · Fixed by #107
Labels
enhancement New feature or request

Comments

@Leggin
Copy link
Owner

Leggin commented Dec 6, 2024

info: names are not unique

Originally posted by @fly74 in #25 (comment)

@Leggin Leggin added the enhancement New feature or request label Dec 6, 2024
@fly74
Copy link

fly74 commented Dec 6, 2024

But if the name in the collection is not unique you could throw an exception. For those who have unique names deployed it would be nice.

@Leggin Leggin linked a pull request Dec 8, 2024 that will close this issue
@Leggin
Copy link
Owner Author

Leggin commented Dec 8, 2024

We have this functionality for other devices too. So we do it the same here, just return the first scene that matches the name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants