From 7f718a6d7ed5f2d034feb94740348f0245db8f5c Mon Sep 17 00:00:00 2001 From: Maurice Makaay Date: Thu, 22 Apr 2021 18:00:00 +0200 Subject: [PATCH] Use DISABLE_ASYNCTCP_ACK_TIMEOUTS to fix client disconnects (depends on not yet accepted pull request: https://github.com/esphome/esphome/pull/1712). --- __init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/__init__.py b/__init__.py index ca71f2e..7eb8bec 100644 --- a/__init__.py +++ b/__init__.py @@ -123,5 +123,8 @@ def to_code(config): # the AUTO_LOAD feature unfortunately. CORE.config["output"].append({ CONF_PLATFORM: "gpio" }) + # A work-around for API disconnects. + cg.add_define("DISABLE_ASYNCTCP_ACK_TIMEOUTS") + yield make_light_hal(config) yield make_front_panel_hal(config)