Use ruff to force alias when importing PLATFORM_SCHEMA (#120539)
This commit is contained in:
parent
e39d26bdc0
commit
fd67fe417e
4 changed files with 54 additions and 7 deletions
|
@ -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
|
||||
|
@ -14,6 +17,8 @@ from homeassistant.helpers import config_validation as cv, entity_registry as er
|
|||
from .const import ACTION_DELETE
|
||||
from .view import EditIdBasedConfigView
|
||||
|
||||
PLATFORM_SCHEMA = SCENE_PLATFORM_SCHEMA
|
||||
|
||||
|
||||
@callback
|
||||
def async_setup(hass: HomeAssistant) -> bool:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue