limit concurrent updates to avoid network flood (#23534)

This commit is contained in:
David F. Mulcahey 2019-04-29 09:39:37 -04:00 committed by GitHub
parent 5e045f3df2
commit 5aa9a1a7c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,7 @@ CAPABILITIES_COLOR_TEMP = 0x10
UNSUPPORTED_ATTRIBUTE = 0x86 UNSUPPORTED_ATTRIBUTE = 0x86
SCAN_INTERVAL = timedelta(minutes=60) SCAN_INTERVAL = timedelta(minutes=60)
PARALLEL_UPDATES = 5
async def async_setup_platform(hass, config, async_add_entities, async def async_setup_platform(hass, config, async_add_entities,

View File

@ -14,6 +14,7 @@ from .core.const import (
SIGNAL_ATTR_UPDATED, SIGNAL_STATE_ATTR) SIGNAL_ATTR_UPDATED, SIGNAL_STATE_ATTR)
from .entity import ZhaEntity from .entity import ZhaEntity
PARALLEL_UPDATES = 5
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)