Skip to content

Commit 63e8cf5

Browse files
authored
Set PARALLEL_UPDATES in fressnapf_tracker (home-assistant#158008)
1 parent 73f2316 commit 63e8cf5

File tree

6 files changed

+14
-1
lines changed

6 files changed

+14
-1
lines changed

homeassistant/components/fressnapf_tracker/binary_sensor.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
from . import FressnapfTrackerConfigEntry
1818
from .entity import FressnapfTrackerEntity
1919

20+
# Coordinator is used to centralize the data updates
21+
PARALLEL_UPDATES = 0
22+
2023

2124
@dataclass(frozen=True, kw_only=True)
2225
class FressnapfTrackerBinarySensorDescription(BinarySensorEntityDescription):

homeassistant/components/fressnapf_tracker/device_tracker.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
from . import FressnapfTrackerConfigEntry, FressnapfTrackerDataUpdateCoordinator
99
from .entity import FressnapfTrackerBaseEntity
1010

11+
# Coordinator is used to centralize the data updates
12+
PARALLEL_UPDATES = 0
13+
1114

1215
async def async_setup_entry(
1316
hass: HomeAssistant,

homeassistant/components/fressnapf_tracker/light.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
from .const import DOMAIN
1818
from .entity import FressnapfTrackerEntity
1919

20+
PARALLEL_UPDATES = 1
21+
2022
LIGHT_ENTITY_DESCRIPTION = LightEntityDescription(
2123
translation_key="led",
2224
entity_category=EntityCategory.CONFIG,

homeassistant/components/fressnapf_tracker/quality_scale.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ rules:
3333
entity-unavailable: done
3434
integration-owner: done
3535
log-when-unavailable: done
36-
parallel-updates: todo
36+
parallel-updates: done
3737
reauthentication-flow: todo
3838
test-coverage: done
3939

homeassistant/components/fressnapf_tracker/sensor.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
from . import FressnapfTrackerConfigEntry
1919
from .entity import FressnapfTrackerEntity
2020

21+
# Coordinator is used to centralize the data updates
22+
PARALLEL_UPDATES = 0
23+
2124

2225
@dataclass(frozen=True, kw_only=True)
2326
class FressnapfTrackerSensorDescription(SensorEntityDescription):

homeassistant/components/fressnapf_tracker/switch.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
from . import FressnapfTrackerConfigEntry
1515
from .entity import FressnapfTrackerEntity
1616

17+
PARALLEL_UPDATES = 1
18+
1719
SWITCH_ENTITY_DESCRIPTION = SwitchEntityDescription(
1820
translation_key="energy_saving",
1921
entity_category=EntityCategory.CONFIG,

0 commit comments

Comments
 (0)