← Back to scan
File as GitHub Issue repo: lasswellt/govee-homeassistant

Push this scan report to lasswellt/govee-homeassistant

Click the green button below to open GitHub’s new-issue form, pre-filled with the report title, summary table, top findings, and an embedded score-card image. No authentication needed — you review on GitHub before submitting. Repobility is credited as the scanner.

Embedded score card image

This image will render at the top of the issue body. Hosted on Repobility, refreshes automatically after re-scans.

Repobility score card

Issue title

High cognitive complexity: Function `handle_advertisement` has cognitive complexity 26 (So

Curate findings to include

Pick exactly which findings appear in the issue body. By default the top 5 are included. Uncheck noise, check what matters.

Top 5 (default)
Severity Rule Title File:line
CRIT generic-api-key Detected a Generic API Key, potentially exposing access to various services and sensitive… docs/govee-protocol-reference.md:1057
CRIT MINED116 Workflow uses `secrets.CODECOV_TOKEN` on a `pull_request` trigger .github/workflows/tox.yaml:38
HIGH MINED001 [MINED001] Bare Except Pass: except: pass or except Exception: pass — silently swallows e… custom_components/govee/ble_advertiseme…:225
HIGH COMP001 [COMP001] High cognitive complexity: Function `__init__` has cognitive complexity 31 (Son… custom_components/govee/humidifier.py:84
HIGH COMP001 [COMP001] High cognitive complexity: Function `handle_advertisement` has cognitive comple… custom_components/govee/ble_advertiseme…:121
HIGH MINED115 Action `codecov/codecov-action` pinned to mutable ref `@v4` .github/workflows/tox.yaml:35
HIGH MINED115 Action `actions/setup-python` pinned to mutable ref `@v5` .github/workflows/tox.yaml:21
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v4` .github/workflows/tox.yaml:18
HIGH MINED115 Action `home-assistant/actions/hassfest` pinned to mutable ref `@master` .github/workflows/hacs-hass.yaml:26
HIGH MINED115 Action `actions/setup-python` pinned to mutable ref `@v5` .github/workflows/install-stats.yml:29
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v4` .github/workflows/install-stats.yml:23
HIGH MINED115 Action `actions/setup-python` pinned to mutable ref `@v5` .github/workflows/uptime.yml:23
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v4` .github/workflows/uptime.yml:22
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v4` .github/workflows/rebase_dependencies.y…:28
HIGH MINED115 Action `actions/setup-python` pinned to mutable ref `@v5` .github/workflows/type-check.yaml:17
HIGH MINED115 Action `actions/checkout` pinned to mutable ref `@v4` .github/workflows/type-check.yaml:14
HIGH MINED131 pre-commit hook `https://github.com/pre-commit/mirrors-mypy` pinned to mutable rev `v1.13… .pre-commit-config.yaml:14
HIGH MINED131 pre-commit hook `https://github.com/PyCQA/flake8` pinned to mutable rev `7.1.1` .pre-commit-config.yaml:8
HIGH MINED131 pre-commit hook `https://github.com/psf/black` pinned to mutable rev `24.10.0` .pre-commit-config.yaml:2
HIGH GHSA-r6ph-v2qm-q3c2 cryptography: GHSA-r6ph-v2qm-q3c2 requirements_test.txt
HIGH GHSA-3ww4-gg4f-jr7f cryptography: GHSA-3ww4-gg4f-jr7f requirements_test.txt
HIGH PYSEC-2026-35 cryptography: PYSEC-2026-35 requirements_test.txt
HIGH PYSEC-2024-225 cryptography: PYSEC-2024-225 requirements_test.txt
HIGH PYSEC-2023-254 cryptography: PYSEC-2023-254 requirements_test.txt
HIGH PYSEC-2023-112 cryptography: PYSEC-2023-112 requirements_test.txt
MED MINED111 Bare except continues silently custom_components/govee/coordinator.py:1208
MED MINED111 Bare except continues silently custom_components/govee/diagnostics.py:84
MED MINED111 Bare except continues silently scripts/status_badges.py:406
MED AUC001 [AUC001] No Repobility access matrix policy found: The repository uses web/API frameworks…
MED GHSA-6w46-j5rx-g56g pytest: GHSA-6w46-j5rx-g56g requirements_test.txt
MED GHSA-h4gh-qq45-vh27 cryptography: GHSA-h4gh-qq45-vh27 requirements_test.txt
MED GHSA-9v9h-cgj8-h64p cryptography: GHSA-9v9h-cgj8-h64p requirements_test.txt
LOW COMP001 [COMP001] High cognitive complexity: Function `async_get_device_diagnostics` has cognitiv… custom_components/govee/diagnostics.py:243
LOW GHSA-v8gr-m533-ghj9 cryptography: GHSA-v8gr-m533-ghj9 requirements_test.txt
LOW GHSA-jm77-qphf-c4w8 cryptography: GHSA-jm77-qphf-c4w8 requirements_test.txt
LOW AIC003 Duplicated implementation block across source files custom_components/govee/protocols/api.py:27
LOW AIC003 Duplicated implementation block across source files custom_components/govee/platforms/segme…:113
LOW WEB005 robots.txt does not advertise a sitemap docs/_research/2026-03-30_govee-login-4…
INFO MINED062 [MINED062] Python Dataclass No Fields: @dataclass over an empty class — unfinished model. custom_components/govee/models/transpor…:19
INFO MINED062 [MINED062] Python Dataclass No Fields: @dataclass over an empty class — unfinished model. custom_components/govee/models/commands…:41
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… custom_components/govee/protocols/api.py:36
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… custom_components/govee/models/commands…:53
INFO MINED050 [MINED050] Stub Only Function: Function declared but body is just pass, return None, rais… custom_components/govee/ble_advertiseme…:226
Reset to top 5 43 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `lasswellt/govee-homeassistant`

**Score: 75/100 (B+)**  ·  93 findings  ·  scanned 2026-06-05 15:05 UTC  ·  28,154 LOC

| Severity | Count |
|---|---|
| CRITICAL | 2 |
| HIGH | 23 |
| MEDIUM | 7 |
| LOW | 6 |

📊 [Full filterable report](https://repobility.com/scan/1ad88394-4a6a-41d3-9167-9b887fb4efa2/)  ·  ![scorecard](https://repobility.com/scan/1ad88394-4a6a-41d3-9167-9b887fb4efa2/report.png?v=1780671910-s2)

### Top findings

1. **CRITICAL** `generic-api-key` — Detected a Generic API Key, potentially exposing access to various services and sensitive 
   `docs/govee-protocol-reference.md:1057`
2. **CRITICAL** `MINED116` — Workflow uses `secrets.CODECOV_TOKEN` on a `pull_request` trigger
   `.github/workflows/tox.yaml:38` · ✓ Repobility
3. **HIGH** `MINED001` — Bare Except Pass
   `custom_components/govee/ble_advertisement.py:225` · CWE-755 · ✓ Repobility
4. **HIGH** `COMP001` — High cognitive complexity: Function `__init__` has cognitive complexity 31 (SonarSource sc
   `custom_components/govee/humidifier.py:84`
5. **HIGH** `COMP001` — High cognitive complexity: Function `handle_advertisement` has cognitive complexity 26 (So
   `custom_components/govee/ble_advertisement.py:121`

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/1ad88394-4a6a-41d3-9167-9b887fb4efa2/_
Megaproject â high spam risk
Could not determine 'lasswellt/govee-homeassistant' star count (GitHub API rate-limited or unreachable). When in doubt about repo size, prefer opening a focused PR or a discussion rather than an issue.
Already filed
75/95 findings (79%) on this scan are already flagged as test-file, won't-fix, or suppressed. The scan is too noisy to file as a single issue. Curate down to specific actionable findings, or address the FP source first.

The button opens GitHubâs new-issue page in a new tab. You will see the title + body pre-filled â review, edit if you want, then click GitHubâs "Submit new issue" button. Repobility never posts anything on your behalf.

For real security findings on big repos: use the project's SECURITY.md or private advisory flow instead of a public issue.