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 support for using * tag to return all devices #1700

Merged
merged 6 commits into from
Jul 7, 2023

Conversation

ericselk2018
Copy link
Contributor

My use case is to turn off all lights when a skill shot is hit (like Deadpool). I didn't want to tag every light with a tag like "all" or "*" to accomplish this, but if there is a better way or this feature seems problematic, no worries if this PR is declined.

I didn't see any existing tests on this area -- if there are any, I'm happy to add a new one for this change.

@toomanybrians
Copy link
Member

This looks great, thanks!

I just checked the tests, looks like there’s a test for tags you can jump onto here:
https://github.com/missionpinball/mpf/blob/dev/mpf/tests/test_DeviceCollection.py#L29

@ericselk2018
Copy link
Contributor Author

Test updated.

@sonarcloud
Copy link

sonarcloud bot commented Jul 2, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@toomanybrians toomanybrians merged commit 6ee8e4b into missionpinball:dev Jul 7, 2023
12 checks passed
toomanybrians added a commit to missionpinball/mpf-docs that referenced this pull request Jul 7, 2023
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

Successfully merging this pull request may close these issues.

None yet

3 participants