1
0
mirror of https://github.com/home-assistant/core synced 2024-07-03 08:18:59 +00:00

Force alias when importing scene PLATFORM_SCHEMA (#120534)

This commit is contained in:
epenet 2024-06-26 12:11:22 +02:00 committed by GitHub
parent 32bab97f00
commit 348ceca19f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,7 +5,10 @@ from __future__ import annotations
from typing import Any
import uuid
from homeassistant.components.scene import DOMAIN, PLATFORM_SCHEMA
from homeassistant.components.scene import (
DOMAIN,
PLATFORM_SCHEMA as SCENE_PLATFORM_SCHEMA,
)
from homeassistant.config import SCENE_CONFIG_PATH
from homeassistant.const import CONF_ID, SERVICE_RELOAD
from homeassistant.core import DOMAIN as HA_DOMAIN, HomeAssistant, callback
@ -40,7 +43,7 @@ def async_setup(hass: HomeAssistant) -> bool:
"config",
SCENE_CONFIG_PATH,
cv.string,
PLATFORM_SCHEMA,
SCENE_PLATFORM_SCHEMA,
post_write_hook=hook,
)
)