mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 00:37:53 +00:00
Introduce parallel updates for Plugwise (#132940)
* Plugwise indicate parallel updates * Update homeassistant/components/plugwise/number.py Co-authored-by: epenet <6771947+epenet@users.noreply.github.com> --------- Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
This commit is contained in:
parent
b02ccd0813
commit
7e071d1fc6
@ -23,6 +23,9 @@ from .entity import PlugwiseEntity
|
||||
|
||||
SEVERITIES = ["other", "info", "warning", "error"]
|
||||
|
||||
# Coordinator is used to centralize the data updates
|
||||
PARALLEL_UPDATES = 0
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class PlugwiseBinarySensorEntityDescription(BinarySensorEntityDescription):
|
||||
|
@ -13,6 +13,8 @@ from .coordinator import PlugwiseDataUpdateCoordinator
|
||||
from .entity import PlugwiseEntity
|
||||
from .util import plugwise_command
|
||||
|
||||
PARALLEL_UPDATES = 0
|
||||
|
||||
|
||||
async def async_setup_entry(
|
||||
hass: HomeAssistant,
|
||||
|
@ -24,6 +24,8 @@ from .coordinator import PlugwiseDataUpdateCoordinator
|
||||
from .entity import PlugwiseEntity
|
||||
from .util import plugwise_command
|
||||
|
||||
PARALLEL_UPDATES = 0
|
||||
|
||||
|
||||
async def async_setup_entry(
|
||||
hass: HomeAssistant,
|
||||
|
@ -20,6 +20,8 @@ from .coordinator import PlugwiseDataUpdateCoordinator
|
||||
from .entity import PlugwiseEntity
|
||||
from .util import plugwise_command
|
||||
|
||||
PARALLEL_UPDATES = 0
|
||||
|
||||
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class PlugwiseNumberEntityDescription(NumberEntityDescription):
|
||||
|
@ -32,9 +32,7 @@ rules:
|
||||
reauthentication-flow:
|
||||
status: exempt
|
||||
comment: The hubs have a hardcoded `Smile ID` printed on the sticker used as password, it can not be changed
|
||||
parallel-updates:
|
||||
status: todo
|
||||
comment: Using coordinator, but required due to mutable platform
|
||||
parallel-updates: done
|
||||
test-coverage: done
|
||||
integration-owner: done
|
||||
docs-installation-parameters:
|
||||
|
@ -15,6 +15,8 @@ from .coordinator import PlugwiseDataUpdateCoordinator
|
||||
from .entity import PlugwiseEntity
|
||||
from .util import plugwise_command
|
||||
|
||||
PARALLEL_UPDATES = 0
|
||||
|
||||
|
||||
@dataclass(frozen=True, kw_only=True)
|
||||
class PlugwiseSelectEntityDescription(SelectEntityDescription):
|
||||
|
@ -31,6 +31,9 @@ from . import PlugwiseConfigEntry
|
||||
from .coordinator import PlugwiseDataUpdateCoordinator
|
||||
from .entity import PlugwiseEntity
|
||||
|
||||
# Coordinator is used to centralize the data updates
|
||||
PARALLEL_UPDATES = 0
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class PlugwiseSensorEntityDescription(SensorEntityDescription):
|
||||
|
@ -21,6 +21,8 @@ from .coordinator import PlugwiseDataUpdateCoordinator
|
||||
from .entity import PlugwiseEntity
|
||||
from .util import plugwise_command
|
||||
|
||||
PARALLEL_UPDATES = 0
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class PlugwiseSwitchEntityDescription(SwitchEntityDescription):
|
||||
|
Loading…
x
Reference in New Issue
Block a user