Use ruff to force alias when importing PLATFORM_SCHEMA (#120539)

This commit is contained in:
epenet 2024-06-26 14:22:52 +02:00 committed by GitHub
parent e39d26bdc0
commit fd67fe417e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 54 additions and 7 deletions

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
@ -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: