diff --git a/homeassistant/components/hlk_sw16/__init__.py b/homeassistant/components/hlk_sw16/__init__.py index e7264c4e0dd..5ab16ed17e6 100644 --- a/homeassistant/components/hlk_sw16/__init__.py +++ b/homeassistant/components/hlk_sw16/__init__.py @@ -24,6 +24,7 @@ _LOGGER = logging.getLogger(__name__) DATA_DEVICE_REGISTER = "hlk_sw16_device_register" DEFAULT_RECONNECT_INTERVAL = 10 +DEFAULT_KEEP_ALIVE_INTERVAL = 3 CONNECTION_TIMEOUT = 10 DEFAULT_PORT = 8080 @@ -93,6 +94,7 @@ async def async_setup(hass, config): loop=hass.loop, timeout=CONNECTION_TIMEOUT, reconnect_interval=DEFAULT_RECONNECT_INTERVAL, + keep_alive_interval=DEFAULT_KEEP_ALIVE_INTERVAL, ) hass.data[DATA_DEVICE_REGISTER][device] = client diff --git a/homeassistant/components/hlk_sw16/manifest.json b/homeassistant/components/hlk_sw16/manifest.json index 741c81b367c..7df3238e287 100644 --- a/homeassistant/components/hlk_sw16/manifest.json +++ b/homeassistant/components/hlk_sw16/manifest.json @@ -2,7 +2,7 @@ "domain": "hlk_sw16", "name": "Hi-Link HLK-SW16", "documentation": "https://www.home-assistant.io/integrations/hlk_sw16", - "requirements": ["hlk-sw16==0.0.7"], + "requirements": ["hlk-sw16==0.0.8"], "dependencies": [], "codeowners": [] } diff --git a/requirements_all.txt b/requirements_all.txt index 8b7423ce5a3..c6b408d33cf 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -667,7 +667,7 @@ hikvision==0.4 hkavr==0.0.5 # homeassistant.components.hlk_sw16 -hlk-sw16==0.0.7 +hlk-sw16==0.0.8 # homeassistant.components.pi_hole hole==0.5.0