mirror of
https://github.com/home-assistant/core.git
synced 2025-07-31 11:18:00 +02:00
Update ruff to 0.12.0 (#147106)
This commit is contained in:
@ -735,8 +735,7 @@ async def handle_subscribe_trigger(
|
||||
) -> None:
|
||||
"""Handle subscribe trigger command."""
|
||||
# Circular dep
|
||||
# pylint: disable-next=import-outside-toplevel
|
||||
from homeassistant.helpers import trigger
|
||||
from homeassistant.helpers import trigger # noqa: PLC0415
|
||||
|
||||
trigger_config = await trigger.async_validate_trigger_config(hass, msg["trigger"])
|
||||
|
||||
@ -786,8 +785,7 @@ async def handle_test_condition(
|
||||
) -> None:
|
||||
"""Handle test condition command."""
|
||||
# Circular dep
|
||||
# pylint: disable-next=import-outside-toplevel
|
||||
from homeassistant.helpers import condition
|
||||
from homeassistant.helpers import condition # noqa: PLC0415
|
||||
|
||||
# Do static + dynamic validation of the condition
|
||||
config = await condition.async_validate_condition_config(hass, msg["condition"])
|
||||
@ -812,8 +810,10 @@ async def handle_execute_script(
|
||||
) -> None:
|
||||
"""Handle execute script command."""
|
||||
# Circular dep
|
||||
# pylint: disable-next=import-outside-toplevel
|
||||
from homeassistant.helpers.script import Script, async_validate_actions_config
|
||||
from homeassistant.helpers.script import ( # noqa: PLC0415
|
||||
Script,
|
||||
async_validate_actions_config,
|
||||
)
|
||||
|
||||
script_config = await async_validate_actions_config(hass, msg["sequence"])
|
||||
|
||||
@ -877,8 +877,7 @@ async def handle_validate_config(
|
||||
) -> None:
|
||||
"""Handle validate config command."""
|
||||
# Circular dep
|
||||
# pylint: disable-next=import-outside-toplevel
|
||||
from homeassistant.helpers import condition, script, trigger
|
||||
from homeassistant.helpers import condition, script, trigger # noqa: PLC0415
|
||||
|
||||
result = {}
|
||||
|
||||
|
Reference in New Issue
Block a user