Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
isort
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas55555 committed Mar 14, 2021
1 parent 75c954b commit 54e5fde
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
14 changes: 5 additions & 9 deletions custom_components/husqvarna_automower/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,17 @@

from aioautomower import GetAccessToken, GetMowerData, RefreshAccessToken
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import Config, HomeAssistant
from homeassistant.exceptions import ConfigEntryNotReady
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed
from homeassistant.const import (
CONF_ACCESS_TOKEN,
CONF_USERNAME,
CONF_API_KEY,
CONF_PASSWORD,
CONF_USERNAME,
)
from homeassistant.core import Config, HomeAssistant
from homeassistant.exceptions import ConfigEntryNotReady
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed

from .const import (
DOMAIN,
PLATFORMS,
STARTUP_MESSAGE,
)
from .const import DOMAIN, PLATFORMS, STARTUP_MESSAGE

SCAN_INTERVAL = timedelta(seconds=300)

Expand Down
6 changes: 3 additions & 3 deletions custom_components/husqvarna_automower/config_flow.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
"""Config flow to add the integration via the UI."""
from homeassistant.const import CONF_ACCESS_TOKEN
import logging
import time
from collections import OrderedDict

import voluptuous as vol
from aioautomower import GetAccessToken, GetMowerData
from homeassistant import config_entries
from homeassistant.core import callback
from homeassistant.const import (
CONF_ACCESS_TOKEN,
CONF_USERNAME,
CONF_API_KEY,
CONF_PASSWORD,
CONF_USERNAME,
)
from homeassistant.core import callback

from .const import DOMAIN, HUSQVARNA_URL

CONF_ID = "unique_id"
Expand Down

0 comments on commit 54e5fde

Please sign in to comment.