Skip to content

[Bug]: Config flow issues #10

@alexdelprete

Description

@alexdelprete

Integration Version

v1.2.2

OpenWrt Version

25.12.0

Connection Method

ubus (HTTP/HTTPS)

Describe the bug

After the installation of this integration, automatic discovery found my OPNsense firewall (main router) as OpenWRT:

Image

Also, when configuring the integration, in config flow, the first step asks me to select the connection method, but no option is presented:

Image

After I click submit, the next issue is that many routers (some of them aren't) are autodetected, via ssh from what I can see, but none of them is the real openwrt router I want to configure:

Image

In next step I can see that ubus is the connection selected (luckily it's the default), but since ssh autodetection of the router fails to identify the correct one, I'm unable to complete the configuration:

Image

The config flow should offer the user a "manual" option in the autodetection step, so if the router is not found or it's not discovered, one can select "manual" and input a hostname/ip.

Also, in the last configuration step, the mandatory fields/options should be highlighted in some way. For example: is the port necessary? if left empty does it default to the standard ubus port?

Looking forward to test this integration, thanks for creating it.

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsshubus

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions