Add PARALLEL_UPDATES to Xbox integration (#157074)

This commit is contained in:
Manu
2025-11-22 23:17:53 +01:00
committed by GitHub
parent 43783ed896
commit 07e2c8a610
4 changed files with 8 additions and 0 deletions

View File

@@ -26,6 +26,8 @@ from .entity import (
profile_pic,
)
PARALLEL_UPDATES = 0
class XboxBinarySensor(StrEnum):
"""Xbox binary sensor."""

View File

@@ -25,6 +25,8 @@ from .browse_media import build_item_response
from .coordinator import XboxConfigEntry
from .entity import XboxConsoleBaseEntity
PARALLEL_UPDATES = 1
SUPPORT_XBOX = (
MediaPlayerEntityFeature.TURN_ON
| MediaPlayerEntityFeature.TURN_OFF

View File

@@ -20,6 +20,8 @@ from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback
from .coordinator import XboxConfigEntry
from .entity import XboxConsoleBaseEntity
PARALLEL_UPDATES = 1
async def async_setup_entry(
hass: HomeAssistant,

View File

@@ -36,6 +36,8 @@ from .entity import (
check_deprecated_entity,
)
PARALLEL_UPDATES = 0
MAP_JOIN_RESTRICTIONS = {
"local": "invite_only",
"followed": "joinable",