The changes looks good, but the gist of the PR breaks the behavior for the main target device: openlumi xiaomi zigbee gateway use wlan0 as the single device.
# ip a | grep "inet .*br-lan" is empty
# ip a | grep "inet "
inet 127.0.0.1/8 scope host lo
inet 192.168.10.43/24 brd 192.168.10.255 scope global wlan0
And as a solution, you may try to check for br-lan and if empty, use the existing line.
The changes looks good, but the gist of the PR breaks the behavior for the main target device: openlumi xiaomi zigbee gateway use wlan0 as the single device.
# ip a | grep "inet .*br-lan"
is emptyAnd as a solution, you may try to check for br-lan and if empty, use the existing line.