mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +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"]
|
SEVERITIES = ["other", "info", "warning", "error"]
|
||||||
|
|
||||||
|
# Coordinator is used to centralize the data updates
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True)
|
||||||
class PlugwiseBinarySensorEntityDescription(BinarySensorEntityDescription):
|
class PlugwiseBinarySensorEntityDescription(BinarySensorEntityDescription):
|
||||||
|
@ -13,6 +13,8 @@ from .coordinator import PlugwiseDataUpdateCoordinator
|
|||||||
from .entity import PlugwiseEntity
|
from .entity import PlugwiseEntity
|
||||||
from .util import plugwise_command
|
from .util import plugwise_command
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_entry(
|
async def async_setup_entry(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
|
@ -24,6 +24,8 @@ from .coordinator import PlugwiseDataUpdateCoordinator
|
|||||||
from .entity import PlugwiseEntity
|
from .entity import PlugwiseEntity
|
||||||
from .util import plugwise_command
|
from .util import plugwise_command
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
|
||||||
async def async_setup_entry(
|
async def async_setup_entry(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
|
@ -20,6 +20,8 @@ from .coordinator import PlugwiseDataUpdateCoordinator
|
|||||||
from .entity import PlugwiseEntity
|
from .entity import PlugwiseEntity
|
||||||
from .util import plugwise_command
|
from .util import plugwise_command
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True, kw_only=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class PlugwiseNumberEntityDescription(NumberEntityDescription):
|
class PlugwiseNumberEntityDescription(NumberEntityDescription):
|
||||||
|
@ -32,9 +32,7 @@ rules:
|
|||||||
reauthentication-flow:
|
reauthentication-flow:
|
||||||
status: exempt
|
status: exempt
|
||||||
comment: The hubs have a hardcoded `Smile ID` printed on the sticker used as password, it can not be changed
|
comment: The hubs have a hardcoded `Smile ID` printed on the sticker used as password, it can not be changed
|
||||||
parallel-updates:
|
parallel-updates: done
|
||||||
status: todo
|
|
||||||
comment: Using coordinator, but required due to mutable platform
|
|
||||||
test-coverage: done
|
test-coverage: done
|
||||||
integration-owner: done
|
integration-owner: done
|
||||||
docs-installation-parameters:
|
docs-installation-parameters:
|
||||||
|
@ -15,6 +15,8 @@ from .coordinator import PlugwiseDataUpdateCoordinator
|
|||||||
from .entity import PlugwiseEntity
|
from .entity import PlugwiseEntity
|
||||||
from .util import plugwise_command
|
from .util import plugwise_command
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True, kw_only=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
class PlugwiseSelectEntityDescription(SelectEntityDescription):
|
class PlugwiseSelectEntityDescription(SelectEntityDescription):
|
||||||
|
@ -31,6 +31,9 @@ from . import PlugwiseConfigEntry
|
|||||||
from .coordinator import PlugwiseDataUpdateCoordinator
|
from .coordinator import PlugwiseDataUpdateCoordinator
|
||||||
from .entity import PlugwiseEntity
|
from .entity import PlugwiseEntity
|
||||||
|
|
||||||
|
# Coordinator is used to centralize the data updates
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True)
|
||||||
class PlugwiseSensorEntityDescription(SensorEntityDescription):
|
class PlugwiseSensorEntityDescription(SensorEntityDescription):
|
||||||
|
@ -21,6 +21,8 @@ from .coordinator import PlugwiseDataUpdateCoordinator
|
|||||||
from .entity import PlugwiseEntity
|
from .entity import PlugwiseEntity
|
||||||
from .util import plugwise_command
|
from .util import plugwise_command
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True)
|
@dataclass(frozen=True)
|
||||||
class PlugwiseSwitchEntityDescription(SwitchEntityDescription):
|
class PlugwiseSwitchEntityDescription(SwitchEntityDescription):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user