Reduce hunterdouglas_powerview parallel updates (#36299)

The powerview hub gets overwhelmed with just a
few requests so we now set PARALLEL_UPDATES to
1.
pull/36306/head
J. Nick Koston 2020-05-30 17:37:25 -05:00 committed by GitHub
parent fb754186bd
commit db9900cf50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View File

@ -56,6 +56,9 @@ from .const import (
USER_DATA,
)
PARALLEL_UPDATES = 1
DEVICE_SCHEMA = vol.Schema(
{DOMAIN: vol.Schema({vol.Required(CONF_HOST): cv.string})}, extra=vol.ALLOW_EXTRA
)

View File

@ -45,6 +45,8 @@ _LOGGER = logging.getLogger(__name__)
# from one state to another
TRANSITION_COMPLETE_DURATION = 30
PARALLEL_UPDATES = 1
async def async_setup_entry(hass, entry, async_add_entities):
"""Set up the hunter douglas shades."""