mirror of
https://github.com/OMGeeky/homecontrol.esp-sensors.git
synced 2025-12-26 17:02:29 +01:00
[PR #3] [MERGED] [Junie]: feat: implement daily reconnection strategy with persistence #3
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/OMGeeky/homecontrol.esp-sensors/pull/3
Author: @jetbrains-junie[bot]
Created: 6/7/2025
Status: ✅ Merged
Merged: 6/7/2025
Merged by: @OMGeeky
Base:
main← Head:jetbrains-junie/issue-2-run-75eae3ea-54e4-40a5-bf5b-51361fd684d8📝 Commits (10+)
1a241e4refactor: clean up imports in MQTT modules and testscd7673ffeat: implement daily reconnection strategy with persistencee713ddefeat: add improvement tasks document for ESP Sensors project95d54c5feat: add task to fix socket timeout error in ESP32MQTTClient1c65e13fix: resolve socket timeout error in ESP32MQTTClient and update task status6b8ec73fix: ensure topic and message are hashable in callback by converting to bytes7eea051feat: add configuration for Black code formatter in config.tomle666f7bfix: improve MQTT client connection and publishing error handling3c72b4fUpdate src/esp_sensors/mqtt.pye3f3cf0fix: comment out connection loss assumption in MQTT publish and subscribe methods📊 Changes
9 files changed (+383 additions, -122 deletions)
View changed files
➕
.junie/config.toml(+21 -0)📝
docs/mqtt_implementation.md(+59 -1)➕
docs/tasks.md(+113 -0)📝
src/esp_sensors/config.py(+15 -2)📝
src/esp_sensors/mqtt.py(+119 -70)📝
src/esp_sensors/mqtt_client.py(+6 -8)📝
src/main.py(+44 -30)📝
tests/test_mqtt.py(+3 -2)📝
tests/test_mqtt_client.py(+3 -9)📄 Description
📌 Hey! This PR was made for you with Junie, the coding agent by JetBrains Early Access Preview
It's still learning, developing, and might make mistakes. Please make sure you review the changes before you accept them.
We’d love your feedback — join our Discord to share bugs, ideas: here.
📊 Junie Summary
The reconnection strategy was implemented to ensure at least four connection attempts per day while conserving battery life through state persistence in a configuration file.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.