Skip to content

fix: route MQTT control commands through ApiMode in on-demand mode - #43

Open
Flachzange wants to merge 1 commit into
jens62:mainfrom
Flachzange:fix/on-demand-mqtt-routing
Open

Flachzange wants to merge 1 commit into
jens62:mainfrom
Flachzange:fix/on-demand-mqtt-routing

Conversation

@Flachzange

Copy link
Copy Markdown

Fixes #41

Summary

This fixes MQTT control routing when the bridge runs in ApiMode with ble_connection=on-demand.

The concrete failure reported in #41 was toggleLid: the MQTT command was handled directly by ServiceMode, where no persistent client exists in on-demand mode, resulting in:

'NoneType' object has no attribute 'toggle_lid_position'

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.

[Bug]: MQTT toggleLid fails in ApiMode with on-demand BLE connection

2 participants