mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Comply with parallel updates quality rule (#138672)
This commit is contained in:
parent
89956adf2e
commit
f2126a357a
@ -47,6 +47,10 @@ async def async_setup_entry(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
# Coordinator is used to centralize the data updates
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
|
||||||
class FlexitBinarySensor(FlexitEntity, BinarySensorEntity):
|
class FlexitBinarySensor(FlexitEntity, BinarySensorEntity):
|
||||||
"""Representation of a Flexit binary Sensor."""
|
"""Representation of a Flexit binary Sensor."""
|
||||||
|
|
||||||
|
@ -43,6 +43,9 @@ async def async_setup_entry(
|
|||||||
async_add_entities([FlexitClimateEntity(config_entry.runtime_data)])
|
async_add_entities([FlexitClimateEntity(config_entry.runtime_data)])
|
||||||
|
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 1
|
||||||
|
|
||||||
|
|
||||||
class FlexitClimateEntity(FlexitEntity, ClimateEntity):
|
class FlexitClimateEntity(FlexitEntity, ClimateEntity):
|
||||||
"""Flexit air handling unit."""
|
"""Flexit air handling unit."""
|
||||||
|
|
||||||
|
@ -205,6 +205,9 @@ async def async_setup_entry(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 1
|
||||||
|
|
||||||
|
|
||||||
class FlexitNumber(FlexitEntity, NumberEntity):
|
class FlexitNumber(FlexitEntity, NumberEntity):
|
||||||
"""Representation of a Flexit Number."""
|
"""Representation of a Flexit Number."""
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ rules:
|
|||||||
status: done
|
status: done
|
||||||
comment: |
|
comment: |
|
||||||
Done implicitly with coordinator.
|
Done implicitly with coordinator.
|
||||||
parallel-updates: todo
|
parallel-updates: done
|
||||||
reauthentication-flow: todo
|
reauthentication-flow: todo
|
||||||
test-coverage: todo
|
test-coverage: todo
|
||||||
# Gold
|
# Gold
|
||||||
|
@ -161,6 +161,10 @@ async def async_setup_entry(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
# Coordinator is used to centralize the data updates
|
||||||
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
|
||||||
class FlexitSensor(FlexitEntity, SensorEntity):
|
class FlexitSensor(FlexitEntity, SensorEntity):
|
||||||
"""Representation of a Flexit (bacnet) Sensor."""
|
"""Representation of a Flexit (bacnet) Sensor."""
|
||||||
|
|
||||||
|
@ -68,6 +68,9 @@ async def async_setup_entry(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
PARALLEL_UPDATES = 1
|
||||||
|
|
||||||
|
|
||||||
class FlexitSwitch(FlexitEntity, SwitchEntity):
|
class FlexitSwitch(FlexitEntity, SwitchEntity):
|
||||||
"""Representation of a Flexit Switch."""
|
"""Representation of a Flexit Switch."""
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user