Sort imports according to PEP8 for jewish_calendar (#29697)

* use isort to sort imports according to PEP8 for jewish_calendar

* fix order
somehow isort did the wrong thing
This commit is contained in:
Bas Nijholt 2019-12-09 11:30:31 +01:00 committed by Franck Nijhof
parent 202522fbca
commit 0fbb450838
4 changed files with 13 additions and 16 deletions

View file

@ -1,13 +1,12 @@
"""The jewish_calendar component."""
import logging
import voluptuous as vol
import hdate
import voluptuous as vol
from homeassistant.const import CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME
from homeassistant.helpers.discovery import async_load_platform
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.discovery import async_load_platform
_LOGGER = logging.getLogger(__name__)

View file

@ -1,13 +1,12 @@
"""Tests for the jewish_calendar component."""
from datetime import datetime
from collections import namedtuple
from contextlib import contextmanager
from datetime import datetime
from unittest.mock import patch
from homeassistant.components import jewish_calendar
import homeassistant.util.dt as dt_util
_LatLng = namedtuple("_LatLng", ["lat", "lng"])
NYC_LATLNG = _LatLng(40.7128, -74.0060)

View file

@ -1,17 +1,16 @@
"""The tests for the Jewish calendar binary sensors."""
from datetime import timedelta
from datetime import datetime as dt
from datetime import datetime as dt, timedelta
import pytest
from homeassistant.const import STATE_ON, STATE_OFF
import homeassistant.util.dt as dt_util
from homeassistant.setup import async_setup_component
from homeassistant.components import jewish_calendar
from homeassistant.const import STATE_OFF, STATE_ON
from homeassistant.setup import async_setup_component
import homeassistant.util.dt as dt_util
from tests.common import async_fire_time_changed
from . import alter_time, make_nyc_test_params, make_jerusalem_test_params
from . import alter_time, make_jerusalem_test_params, make_nyc_test_params
MELACHA_PARAMS = [
make_nyc_test_params(dt(2018, 9, 1, 16, 0), STATE_ON),

View file

@ -1,15 +1,15 @@
"""The tests for the Jewish calendar sensors."""
from datetime import timedelta
from datetime import datetime as dt
from datetime import datetime as dt, timedelta
import pytest
import homeassistant.util.dt as dt_util
from homeassistant.setup import async_setup_component
from homeassistant.components import jewish_calendar
from homeassistant.setup import async_setup_component
import homeassistant.util.dt as dt_util
from tests.common import async_fire_time_changed
from . import alter_time, make_nyc_test_params, make_jerusalem_test_params
from . import alter_time, make_jerusalem_test_params, make_nyc_test_params
async def test_jewish_calendar_min_config(hass):