291 files

This commit is contained in:
Home Assistant Version Control
2026-10-14 18:10:18 +00:00
parent c4e0178d8a
commit 280501d2e8
291 changed files with 32540 additions and 3280 deletions
@@ -18,6 +18,7 @@ from homeassistant.exceptions import HomeAssistantError
from homeassistant.helpers import config_validation as cv
from ....const import DOMAIN as SPOOK_DOMAIN
from ....helper_collections import async_get_storage_collection
from ....services import AbstractSpookEntityComponentService
if TYPE_CHECKING:
@@ -63,13 +64,8 @@ class SpookService(AbstractSpookEntityComponentService[Timer]):
}
)
collection: TimerStorageCollection
if DOMAIN in entity.hass.data:
collection = entity.hass.data[DOMAIN]
else:
# Major hack borrowed from ../../zone/services/create.py:27 👻
collection = entity.hass.data["websocket_api"]["timer/list"][
0
].__self__.storage_collection
collection: TimerStorageCollection = async_get_storage_collection(
entity.hass, DOMAIN
)
await collection.async_update_item(item_id, updates)