Skip to content

Add CONFIG_SCHEMA, drop the bleak requirement and the removed UP038 rule - #28

Merged
Nailik merged 1 commit into
mainfrom
chore/housekeeping
Oct 17, 2026
Merged

Nailik merged 1 commit into
mainfrom
chore/housekeeping

Conversation

@Nailik

@Nailik Nailik commented Oct 17, 2026 •

Copy link
Copy Markdown
Owner

Summary

Housekeeping with no behaviour change. Merge this before the other open PRs; it merges cleanly with each of them.

  • CONFIG_SCHEMA: Home Assistant expects it on integrations that define async_setup (hassfest's config_schema check; it did not fail CI without it so far). The integration is set up through config entries only, so it uses cv.config_entry_only_config_schema(DOMAIN).
  • Drop bleak>=0.21.1 from manifest.json: Home Assistant pins bleak and provides it through the bluetooth integration this one already depends on. Our own requirement can only conflict with that pin.
  • Remove UP038 from the ruff ignore list: current ruff removed the rule, so ignoring it only printed a warning on every run. The pre-commit hook still pins ruff v0.12.1, where UP038 is deprecated and not selected; ruff@0.12.1 check passes on this branch, and --select UP038 finds nothing either.

Not in this PR

  • Test requirements pin. fix/stuck-gatt-recovery rewrites requirements.test.txt to pin homeassistant and pytest-homeassistant-custom-component to matching versions, which fixes pip silently installing an older plugin release. Changing the file here too would only conflict.
  • README "Dependencies" line. It still mentions bleak>=0.21.1. fix/stuck-gatt-recovery rewrites that block.

Test plan

  • pytest tests on WSL (HA 2025.6): 347 passed, 68 snapshots passed. This needs the Bluetooth mgmt-socket fixture from fix/stuck-gatt-recovery's conftest.py, applied for the run only. Without it, main and this branch fail the same 17 tests on WSL.
  • ruff check: clean, and no more UP038 warning
  • hassfest in CI

🤖 Generated with Claude Code

hassfest requires a CONFIG_SCHEMA on integrations that define async_setup.
The integration is set up through config entries only, so use
config_entry_only_config_schema.

bleak is pinned by Home Assistant and provided by the bluetooth
integration this one already depends on. Requiring bleak>=0.21.1 only
risks a conflict with that pin.

ruff removed UP038, so ignoring it only produced a warning on every run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Nailik
Nailik merged commit b82e619 into main Oct 17, 2026
3 checks passed
@Nailik
Nailik deleted the chore/housekeeping branch October 17, 2026 21:11
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.

1 participant