Skip to content

Commit 0174bad

Browse files
authored
Add PARALLEL_UPDATES to UniFi Protect platforms (home-assistant#157504)
1 parent d5be623 commit 0174bad

File tree

12 files changed

+15
-0
lines changed

12 files changed

+15
-0
lines changed

homeassistant/components/unifiprotect/binary_sensor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
)
4040

4141
_KEY_DOOR = "door"
42+
PARALLEL_UPDATES = 0
4243

4344

4445
@dataclasses.dataclass(frozen=True, kw_only=True)

homeassistant/components/unifiprotect/button.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
)
3434

3535
_LOGGER = logging.getLogger(__name__)
36+
PARALLEL_UPDATES = 0
3637

3738

3839
@dataclass(frozen=True, kw_only=True)

homeassistant/components/unifiprotect/camera.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
from .utils import get_camera_base_name
3333

3434
_LOGGER = logging.getLogger(__name__)
35+
PARALLEL_UPDATES = 0
3536

3637

3738
@callback

homeassistant/components/unifiprotect/event.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
)
4141
from .entity import EventEntityMixin, ProtectDeviceEntity, ProtectEventMixin
4242

43+
PARALLEL_UPDATES = 0
44+
4345

4446
# Select best thumbnail
4547
# Prefer thumbnails with LPR data, sorted by confidence

homeassistant/components/unifiprotect/light.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from .entity import ProtectDeviceEntity
1616

1717
_LOGGER = logging.getLogger(__name__)
18+
PARALLEL_UPDATES = 0
1819

1920

2021
async def async_setup_entry(

homeassistant/components/unifiprotect/lock.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from .entity import ProtectDeviceEntity
2121

2222
_LOGGER = logging.getLogger(__name__)
23+
PARALLEL_UPDATES = 0
2324

2425

2526
async def async_setup_entry(

homeassistant/components/unifiprotect/media_player.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
from .entity import ProtectDeviceEntity
2828

2929
_LOGGER = logging.getLogger(__name__)
30+
PARALLEL_UPDATES = 0
3031

3132
_SPEAKER_DESCRIPTION = MediaPlayerEntityDescription(
3233
key="speaker",

homeassistant/components/unifiprotect/number.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
async_all_device_entities,
3030
)
3131

32+
PARALLEL_UPDATES = 0
33+
3234

3335
@dataclass(frozen=True, kw_only=True)
3436
class ProtectNumberEntityDescription(

homeassistant/components/unifiprotect/select.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545

4646
_LOGGER = logging.getLogger(__name__)
4747
_KEY_LIGHT_MOTION = "light_motion"
48+
PARALLEL_UPDATES = 0
4849

4950
HDR_MODES = [
5051
{"id": "always", "name": "Always On"},

homeassistant/components/unifiprotect/sensor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555

5656
_LOGGER = logging.getLogger(__name__)
5757
OBJECT_TYPE_NONE = "none"
58+
PARALLEL_UPDATES = 0
5859

5960

6061
@dataclass(frozen=True, kw_only=True)

0 commit comments

Comments
 (0)