Skip to content

Fix config/options flow 500 for registered device#39

Merged
codezorz merged 1 commit into
mainfrom
fix/config-flow-options-500
Mar 7, 2026
Merged

Fix config/options flow 500 for registered device#39
codezorz merged 1 commit into
mainfrom
fix/config-flow-options-500

Conversation

@codezorz

@codezorz codezorz commented Mar 7, 2026

Copy link
Copy Markdown
Owner

Summary

Fix config/options flow loading for already registered devices by returning an options flow handler directly instead of a coroutine.

Changes

  • Make MijnTedConfigFlow.async_get_options_flow synchronous.
  • Add regression test tests/test_config_flow.py to ensure the factory returns a handler (not a coroutine).

Validation

  • python3 -m compileall custom_components/mijnted
  • Local Home Assistant and pytest verification by maintainer

Closes #27
Issue: #27

@codezorz codezorz force-pushed the fix/config-flow-options-500 branch 3 times, most recently from 6f5e330 to d6d2f4d Compare March 7, 2026 12:29
- add ConfigFlow/OptionsFlow/ConfigEntry Home Assistant stubs in tests
- add runtime dependencies to requirements_test.txt for local pytest
- remove JWT weak test-key warnings in jwt util tests
- document cross-platform virtualenv activation for validation
- keep activation scripts tracked in scripts/ via .gitignore allowlist
- include Linux activation helper script for local development
@codezorz codezorz force-pushed the fix/config-flow-options-500 branch from d6d2f4d to 60d18e3 Compare March 7, 2026 12:36
@codezorz codezorz merged commit 342e5a6 into main Mar 7, 2026
5 checks passed
@codezorz codezorz deleted the fix/config-flow-options-500 branch March 7, 2026 12:46
@codezorz codezorz added the bug Something isn't working label Mar 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Config flow 500 for registered device (async_get_options_flow never awaited)

1 participant