[code-quality] Organise time imports (#7219)

This commit is contained in:
tomaszduda23 2024-08-08 07:02:55 +02:00 committed by GitHub
parent a3d5b69a9c
commit b71c03424e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,32 +1,32 @@
import logging
from importlib import resources from importlib import resources
import logging
from typing import Optional from typing import Optional
import tzlocal import tzlocal
from esphome import automation
from esphome.automation import Condition
import esphome.codegen as cg import esphome.codegen as cg
import esphome.config_validation as cv import esphome.config_validation as cv
from esphome import automation
from esphome.const import ( from esphome.const import (
CONF_ID, CONF_AT,
CONF_CRON, CONF_CRON,
CONF_DAYS_OF_MONTH, CONF_DAYS_OF_MONTH,
CONF_DAYS_OF_WEEK, CONF_DAYS_OF_WEEK,
CONF_HOUR,
CONF_HOURS, CONF_HOURS,
CONF_ID,
CONF_MINUTE,
CONF_MINUTES, CONF_MINUTES,
CONF_MONTHS, CONF_MONTHS,
CONF_ON_TIME, CONF_ON_TIME,
CONF_ON_TIME_SYNC, CONF_ON_TIME_SYNC,
CONF_SECOND,
CONF_SECONDS, CONF_SECONDS,
CONF_TIMEZONE, CONF_TIMEZONE,
CONF_TRIGGER_ID, CONF_TRIGGER_ID,
CONF_AT,
CONF_SECOND,
CONF_HOUR,
CONF_MINUTE,
) )
from esphome.core import coroutine_with_priority from esphome.core import coroutine_with_priority
from esphome.automation import Condition
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)