diff --git a/custom_components/bemfa/manifest.json b/custom_components/bemfa/manifest.json index ac5262e..f6fbdd4 100644 --- a/custom_components/bemfa/manifest.json +++ b/custom_components/bemfa/manifest.json @@ -12,6 +12,6 @@ "issue_tracker": "https://github.com/larry-wong/bemfa/issues", "requirements": ["paho-mqtt==1.6.1"], "ssdp": [], - "version": "1.3.1", + "version": "1.3.2", "zeroconf": [] } \ No newline at end of file diff --git a/custom_components/bemfa/mqtt.py b/custom_components/bemfa/mqtt.py index 5c5e2cc..7544707 100644 --- a/custom_components/bemfa/mqtt.py +++ b/custom_components/bemfa/mqtt.py @@ -94,8 +94,8 @@ async def _receive_job(): await asyncio.sleep(INTERVAL_PING_RECEIVE) self._ping_lost += 1 if self._ping_lost == MAX_PING_LOST: - self._reconnect() self._ping_lost = 0 + self._reconnect() async def _publish_job(): await asyncio.sleep(INTERVAL_PING_SEND)