mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Reduce hunterdouglas_powerview parallel updates (#36299)
The powerview hub gets overwhelmed with just a few requests so we now set PARALLEL_UPDATES to 1.
This commit is contained in:
parent
fb754186bd
commit
db9900cf50
@ -56,6 +56,9 @@ from .const import (
|
|||||||
USER_DATA,
|
USER_DATA,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 1
|
||||||
|
|
||||||
|
|
||||||
DEVICE_SCHEMA = vol.Schema(
|
DEVICE_SCHEMA = vol.Schema(
|
||||||
{DOMAIN: vol.Schema({vol.Required(CONF_HOST): cv.string})}, extra=vol.ALLOW_EXTRA
|
{DOMAIN: vol.Schema({vol.Required(CONF_HOST): cv.string})}, extra=vol.ALLOW_EXTRA
|
||||||
)
|
)
|
||||||
|
@ -45,6 +45,8 @@ _LOGGER = logging.getLogger(__name__)
|
|||||||
# from one state to another
|
# from one state to another
|
||||||
TRANSITION_COMPLETE_DURATION = 30
|
TRANSITION_COMPLETE_DURATION = 30
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 1
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_entry(hass, entry, async_add_entities):
|
async def async_setup_entry(hass, entry, async_add_entities):
|
||||||
"""Set up the hunter douglas shades."""
|
"""Set up the hunter douglas shades."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user