Add PARALLEL_UPDATES to Squeezebox (#144618)

This commit is contained in:
peteS-UK 2025-05-11 16:21:01 +01:00 committed by GitHub
parent a540c62594
commit 6f41fbeb22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 10 additions and 0 deletions

View File

@ -17,6 +17,9 @@ from . import SqueezeboxConfigEntry
from .const import STATUS_SENSOR_NEEDSRESTART, STATUS_SENSOR_RESCAN from .const import STATUS_SENSOR_NEEDSRESTART, STATUS_SENSOR_RESCAN
from .entity import LMSStatusEntity from .entity import LMSStatusEntity
# Coordinator is used to centralize the data updates
PARALLEL_UPDATES = 0
SENSORS: tuple[BinarySensorEntityDescription, ...] = ( SENSORS: tuple[BinarySensorEntityDescription, ...] = (
BinarySensorEntityDescription( BinarySensorEntityDescription(
key=STATUS_SENSOR_RESCAN, key=STATUS_SENSOR_RESCAN,

View File

@ -18,6 +18,9 @@ from .entity import SqueezeboxEntity
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)
# Coordinator is used to centralize the data updates
PARALLEL_UPDATES = 0
HARDWARE_MODELS_WITH_SCREEN = [ HARDWARE_MODELS_WITH_SCREEN = [
"Squeezebox Boom", "Squeezebox Boom",
"Squeezebox Radio", "Squeezebox Radio",

View File

@ -75,6 +75,7 @@ ATTR_QUERY_RESULT = "query_result"
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)
PARALLEL_UPDATES = 1
ATTR_PARAMETERS = "parameters" ATTR_PARAMETERS = "parameters"
ATTR_OTHER_PLAYER = "other_player" ATTR_OTHER_PLAYER = "other_player"

View File

@ -29,6 +29,9 @@ from .const import (
) )
from .entity import LMSStatusEntity from .entity import LMSStatusEntity
# Coordinator is used to centralize the data updates
PARALLEL_UPDATES = 0
SENSORS: tuple[SensorEntityDescription, ...] = ( SENSORS: tuple[SensorEntityDescription, ...] = (
SensorEntityDescription( SensorEntityDescription(
key=STATUS_SENSOR_INFO_TOTAL_ALBUMS, key=STATUS_SENSOR_INFO_TOTAL_ALBUMS,