mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 01:07:10 +00:00
Add parallel updates to UptimeRobot (#142849)
This commit is contained in:
parent
8bcc4f4c82
commit
1e31e2944b
@ -14,6 +14,9 @@ from .const import DOMAIN
|
|||||||
from .coordinator import UptimeRobotConfigEntry, UptimeRobotDataUpdateCoordinator
|
from .coordinator import UptimeRobotConfigEntry, UptimeRobotDataUpdateCoordinator
|
||||||
from .entity import UptimeRobotEntity
|
from .entity import UptimeRobotEntity
|
||||||
|
|
||||||
|
# Coordinator is used to centralize the data updates
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_entry(
|
async def async_setup_entry(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
|
@ -23,6 +23,9 @@ SENSORS_INFO = {
|
|||||||
9: "down",
|
9: "down",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Coordinator is used to centralize the data updates
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_entry(
|
async def async_setup_entry(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
|
@ -18,6 +18,9 @@ from .const import API_ATTR_OK, DOMAIN, LOGGER
|
|||||||
from .coordinator import UptimeRobotConfigEntry, UptimeRobotDataUpdateCoordinator
|
from .coordinator import UptimeRobotConfigEntry, UptimeRobotDataUpdateCoordinator
|
||||||
from .entity import UptimeRobotEntity
|
from .entity import UptimeRobotEntity
|
||||||
|
|
||||||
|
# Limit the number of parallel updates to 1
|
||||||
|
PARALLEL_UPDATES = 1
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_entry(
|
async def async_setup_entry(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user