mirror of
https://github.com/home-assistant/core.git
synced 2026-12-04 04:41:30 -04:00
Set PARALLEL_UPDATES in the Tractive integration (#186125)
This commit is contained in:
@@ -19,6 +19,8 @@ from .const import ATTR_POWER_SAVING
|
||||
from .coordinator import TractiveConfigEntry, TractiveCoordinator
|
||||
from .entity import TractiveEntity
|
||||
|
||||
PARALLEL_UPDATES = 0
|
||||
|
||||
|
||||
class TractiveBinarySensor(TractiveEntity, BinarySensorEntity):
|
||||
"""Tractive sensor."""
|
||||
|
||||
@@ -11,6 +11,8 @@ from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback
|
||||
from .coordinator import TractiveConfigEntry, TractiveCoordinator
|
||||
from .entity import TractiveEntity
|
||||
|
||||
PARALLEL_UPDATES = 0
|
||||
|
||||
|
||||
async def async_setup_entry(
|
||||
hass: HomeAssistant,
|
||||
|
||||
@@ -32,6 +32,8 @@ from .const import (
|
||||
from .coordinator import TractiveConfigEntry, TractiveCoordinator
|
||||
from .entity import TractiveEntity
|
||||
|
||||
PARALLEL_UPDATES = 0
|
||||
|
||||
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class TractiveSensorEntityDescription(SensorEntityDescription):
|
||||
|
||||
@@ -16,6 +16,8 @@ from .const import ATTR_BUZZER, ATTR_LED, ATTR_LIVE_TRACKING, DOMAIN
|
||||
from .coordinator import TractiveConfigEntry, TractiveCoordinator
|
||||
from .entity import TractiveEntity
|
||||
|
||||
PARALLEL_UPDATES = 1
|
||||
|
||||
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class TractiveSwitchEntityDescription(SwitchEntityDescription):
|
||||
|
||||
Reference in New Issue
Block a user