Skip to content

Fix ConfigFlow registration to resolve persistent "Flow handler not found" error (v1.3.8)#27

Merged
Geek-MD merged 3 commits intomainfrom
copilot/fix-migration-errors
Dec 10, 2025
Merged

Fix ConfigFlow registration to resolve persistent "Flow handler not found" error (v1.3.8)#27
Geek-MD merged 3 commits intomainfrom
copilot/fix-migration-errors

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 10, 2025

Home Assistant reports "Flow handler not found for entry" for all existing config entries, preventing access to counter configurations and options menu.

Root Cause

ConfigFlow used legacy domain registration (domain = DOMAIN class attribute) incompatible with HA 2021.11+ flow handler registry.

Changes

config_flow.py

# Before
class HADailyCounterConfigFlow(config_entries.ConfigFlow):
    domain = DOMAIN

# After
class HADailyCounterConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):  # type: ignore[call-arg]

init.py

  • Added async_migrate_entry() handler for config entry version management

manifest.json

  • Version: 1.3.71.3.8

Documentation

  • Added CHANGELOG entry and bilingual release notes

Modern HA requires domain as constructor parameter for proper flow handler registration. The type: ignore annotation silences mypy's metaclass confusion while preserving runtime correctness.

Original prompt

Persisten los errores de migración

Registrador: homeassistant.config_entries
Fuente: config_entries.py:1081
Ocurrió por primera vez: 11:56:58 (9 ocurrencias)
Última vez registrado: 11:56:58

Flow handler not found for entry Apertura Ventana Dormitorio Baltasar for ha_daily_counter
Flow handler not found for entry Apertura Ventana Dormitorio Begoña for ha_daily_counter
Flow handler not found for entry Apertura Ventana Dormitorio Principal for ha_daily_counter
Flow handler not found for entry Apertura Ventanal Living for ha_daily_counter
Flow handler not found for entry Movimiento Pasillo for ha_daily_counter


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits December 10, 2025 15:27
…(v1.3.8)

Co-authored-by: Geek-MD <25725990+Geek-MD@users.noreply.github.com>
Co-authored-by: Geek-MD <25725990+Geek-MD@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix migration errors for daily counter entries Fix ConfigFlow registration to resolve persistent "Flow handler not found" error (v1.3.8) Dec 10, 2025
Copilot AI requested a review from Geek-MD December 10, 2025 15:35
@Geek-MD Geek-MD marked this pull request as ready for review December 10, 2025 15:36
@Geek-MD Geek-MD merged commit 18c78a7 into main Dec 10, 2025
3 checks passed
@Geek-MD Geek-MD deleted the copilot/fix-migration-errors branch December 10, 2025 15:36
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.

2 participants