Error adding entity sensor.bamboo_strip_local_power for domain sensor with platform powercalc #16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Auto-assign issues by label | |
| on: | |
| issues: | |
| types: [opened, labeled] | |
| jobs: | |
| assign: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| steps: | |
| - name: Assign UPS and Printer issues to brianegge | |
| uses: actions/github-script@v9 | |
| with: | |
| script: | | |
| const labels = context.payload.issue.labels.map(l => l.name.toLowerCase()); | |
| const targetLabels = ['ups', 'printer']; | |
| if (labels.some(l => targetLabels.includes(l))) { | |
| await github.rest.issues.addAssignees({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.issue.number, | |
| assignees: ['brianegge'], | |
| }); | |
| } |