Comply with parallel updates quality rule (#138672)

This commit is contained in:
Jonas Fors Lellky 2025-02-17 08:58:21 +01:00 committed by GitHub
parent 89956adf2e
commit f2126a357a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 18 additions and 1 deletions

View File

@ -47,6 +47,10 @@ async def async_setup_entry(
)
# Coordinator is used to centralize the data updates
PARALLEL_UPDATES = 0
class FlexitBinarySensor(FlexitEntity, BinarySensorEntity):
"""Representation of a Flexit binary Sensor."""

View File

@ -43,6 +43,9 @@ async def async_setup_entry(
async_add_entities([FlexitClimateEntity(config_entry.runtime_data)])
PARALLEL_UPDATES = 1
class FlexitClimateEntity(FlexitEntity, ClimateEntity):
"""Flexit air handling unit."""

View File

@ -205,6 +205,9 @@ async def async_setup_entry(
)
PARALLEL_UPDATES = 1
class FlexitNumber(FlexitEntity, NumberEntity):
"""Representation of a Flexit Number."""

View File

@ -47,7 +47,7 @@ rules:
status: done
comment: |
Done implicitly with coordinator.
parallel-updates: todo
parallel-updates: done
reauthentication-flow: todo
test-coverage: todo
# Gold

View File

@ -161,6 +161,10 @@ async def async_setup_entry(
)
# Coordinator is used to centralize the data updates
PARALLEL_UPDATES = 0
class FlexitSensor(FlexitEntity, SensorEntity):
"""Representation of a Flexit (bacnet) Sensor."""

View File

@ -68,6 +68,9 @@ async def async_setup_entry(
)
PARALLEL_UPDATES = 1
class FlexitSwitch(FlexitEntity, SwitchEntity):
"""Representation of a Flexit Switch."""