From 4a33b1d936aa34bbddeebf3f31a0d5826e5fa04a Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 9 Jan 2025 12:15:32 +0100 Subject: [PATCH] Set PARALLEL_UPDATES to 0 in onewire (#135178) --- homeassistant/components/onewire/binary_sensor.py | 4 +++- homeassistant/components/onewire/sensor.py | 4 +++- homeassistant/components/onewire/switch.py | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/onewire/binary_sensor.py b/homeassistant/components/onewire/binary_sensor.py index 5d3c71b5eae..c8127980d5e 100644 --- a/homeassistant/components/onewire/binary_sensor.py +++ b/homeassistant/components/onewire/binary_sensor.py @@ -19,7 +19,9 @@ from .const import DEVICE_KEYS_0_3, DEVICE_KEYS_0_7, DEVICE_KEYS_A_B, READ_MODE_ from .entity import OneWireEntity, OneWireEntityDescription from .onewirehub import OneWireConfigEntry, OneWireHub -PARALLEL_UPDATES = 1 +# the library uses non-persistent connections +# and concurrent access to the bus is managed by the server +PARALLEL_UPDATES = 0 SCAN_INTERVAL = timedelta(seconds=30) diff --git a/homeassistant/components/onewire/sensor.py b/homeassistant/components/onewire/sensor.py index e345550c265..e019a064e3d 100644 --- a/homeassistant/components/onewire/sensor.py +++ b/homeassistant/components/onewire/sensor.py @@ -41,7 +41,9 @@ from .const import ( from .entity import OneWireEntity, OneWireEntityDescription from .onewirehub import OneWireConfigEntry, OneWireHub -PARALLEL_UPDATES = 1 +# the library uses non-persistent connections +# and concurrent access to the bus is managed by the server +PARALLEL_UPDATES = 0 SCAN_INTERVAL = timedelta(seconds=30) diff --git a/homeassistant/components/onewire/switch.py b/homeassistant/components/onewire/switch.py index 57f4f41924e..645a3b5f2ea 100644 --- a/homeassistant/components/onewire/switch.py +++ b/homeassistant/components/onewire/switch.py @@ -16,7 +16,9 @@ from .const import DEVICE_KEYS_0_3, DEVICE_KEYS_0_7, DEVICE_KEYS_A_B, READ_MODE_ from .entity import OneWireEntity, OneWireEntityDescription from .onewirehub import OneWireConfigEntry, OneWireHub -PARALLEL_UPDATES = 1 +# the library uses non-persistent connections +# and concurrent access to the bus is managed by the server +PARALLEL_UPDATES = 0 SCAN_INTERVAL = timedelta(seconds=30)