From 5aa9a1a7c2772999f925f5f02f717a4d64589d4f Mon Sep 17 00:00:00 2001 From: "David F. Mulcahey" Date: Mon, 29 Apr 2019 09:39:37 -0400 Subject: [PATCH] limit concurrent updates to avoid network flood (#23534) --- homeassistant/components/zha/light.py | 1 + homeassistant/components/zha/sensor.py | 1 + 2 files changed, 2 insertions(+) diff --git a/homeassistant/components/zha/light.py b/homeassistant/components/zha/light.py index ec840d5edb3..8395c2317e8 100644 --- a/homeassistant/components/zha/light.py +++ b/homeassistant/components/zha/light.py @@ -24,6 +24,7 @@ CAPABILITIES_COLOR_TEMP = 0x10 UNSUPPORTED_ATTRIBUTE = 0x86 SCAN_INTERVAL = timedelta(minutes=60) +PARALLEL_UPDATES = 5 async def async_setup_platform(hass, config, async_add_entities, diff --git a/homeassistant/components/zha/sensor.py b/homeassistant/components/zha/sensor.py index b6ac70fa187..94f57ed9a0b 100644 --- a/homeassistant/components/zha/sensor.py +++ b/homeassistant/components/zha/sensor.py @@ -14,6 +14,7 @@ from .core.const import ( SIGNAL_ATTR_UPDATED, SIGNAL_STATE_ATTR) from .entity import ZhaEntity +PARALLEL_UPDATES = 5 _LOGGER = logging.getLogger(__name__)