mirror of
https://github.com/Electric-Special/ha-core.git
synced 2026-03-21 08:06:00 +01:00
Add PARALLEL_UPDATES to Xbox integration (#157074)
This commit is contained in:
@@ -26,6 +26,8 @@ from .entity import (
|
||||
profile_pic,
|
||||
)
|
||||
|
||||
PARALLEL_UPDATES = 0
|
||||
|
||||
|
||||
class XboxBinarySensor(StrEnum):
|
||||
"""Xbox binary sensor."""
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -36,6 +36,8 @@ from .entity import (
|
||||
check_deprecated_entity,
|
||||
)
|
||||
|
||||
PARALLEL_UPDATES = 0
|
||||
|
||||
MAP_JOIN_RESTRICTIONS = {
|
||||
"local": "invite_only",
|
||||
"followed": "joinable",
|
||||
|
||||
Reference in New Issue
Block a user