mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Add parallel updates to Vodafone Station (#140532)
This commit is contained in:
parent
55895df54d
commit
d5af542dd1
@ -19,6 +19,9 @@ from homeassistant.helpers.update_coordinator import CoordinatorEntity
|
|||||||
from .const import _LOGGER
|
from .const import _LOGGER
|
||||||
from .coordinator import VodafoneConfigEntry, VodafoneStationRouter
|
from .coordinator import VodafoneConfigEntry, VodafoneStationRouter
|
||||||
|
|
||||||
|
# Coordinator is used to centralize the data updates
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True, kw_only=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class VodafoneStationEntityDescription(ButtonEntityDescription):
|
class VodafoneStationEntityDescription(ButtonEntityDescription):
|
||||||
|
@ -15,6 +15,9 @@ from .coordinator import (
|
|||||||
VodafoneStationRouter,
|
VodafoneStationRouter,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# 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,
|
||||||
|
@ -20,6 +20,9 @@ from homeassistant.helpers.update_coordinator import CoordinatorEntity
|
|||||||
from .const import _LOGGER, LINE_TYPES
|
from .const import _LOGGER, LINE_TYPES
|
||||||
from .coordinator import VodafoneConfigEntry, VodafoneStationRouter
|
from .coordinator import VodafoneConfigEntry, VodafoneStationRouter
|
||||||
|
|
||||||
|
# Coordinator is used to centralize the data updates
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
NOT_AVAILABLE: list = ["", "N/A", "0.0.0.0"]
|
NOT_AVAILABLE: list = ["", "N/A", "0.0.0.0"]
|
||||||
UPTIME_DEVIATION = 60
|
UPTIME_DEVIATION = 60
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user