Skip to content

Fix config flow handler naming to resolve "Invalid handler specified" error#2

Merged
Geek-MD merged 2 commits intomainfrom
copilot/fix-integration-configuration-error
Dec 18, 2025
Merged

Fix config flow handler naming to resolve "Invalid handler specified" error#2
Geek-MD merged 2 commits intomainfrom
copilot/fix-integration-configuration-error

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 18, 2025

Home Assistant's config flow loader expects the handler class to be named ConfigFlowHandler. The integration used HomebridgeUpdateFlowHandler, causing configuration failures.

Changes

  • Renamed config flow handler class: HomebridgeUpdateFlowHandlerConfigFlowHandler
  • Removed deprecated CONNECTION_CLASS attribute
  • Version bump: 0.3.0 → 0.3.1
# Before
class HomebridgeUpdateFlowHandler(config_entries.ConfigFlow):
    VERSION = 1
    DOMAIN = DOMAIN
    CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_POLL

# After
class ConfigFlowHandler(config_entries.ConfigFlow):
    VERSION = 1
    DOMAIN = DOMAIN

The integration can now be configured through the Home Assistant UI without errors.

Original prompt

tengo el siguiente mensaje al intentar configurar la integracion

No se pudo cargar el flujo de configuración: {"message":"Invalid handler specified"}


💡 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.

Co-authored-by: Geek-MD <25725990+Geek-MD@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix error loading integration configuration flow Fix config flow handler naming to resolve "Invalid handler specified" error Dec 18, 2025
Copilot AI requested a review from Geek-MD December 18, 2025 03:19
@Geek-MD Geek-MD marked this pull request as ready for review December 18, 2025 03:19
@Geek-MD Geek-MD merged commit f684287 into main Dec 18, 2025
3 checks passed
@Geek-MD Geek-MD deleted the copilot/fix-integration-configuration-error branch December 18, 2025 03:20
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