Skip to content

Refactor state imports and add MQTT regression test#18

Open
AndreasBeyer wants to merge 1 commit intomainfrom
codex/refactor-imports-in-handler.py-and-paketbox.py
Open

Refactor state imports and add MQTT regression test#18
AndreasBeyer wants to merge 1 commit intomainfrom
codex/refactor-imports-in-handler.py-and-paketbox.py

Conversation

@AndreasBeyer
Copy link
Owner

Summary

  • update handler and paketbox to import the central state module instead of individual MQTT globals and add a reusable helper for publishing error states
  • ensure all MQTT interactions now go through state.mqttObject/state.sendMqttErrorState
  • add a regression test that verifies ResetErrorState clears the suppression flag so the next error publishes again

Testing

  • python -m unittest tests.test_paketbox

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant