From 1a6c79d5e2dcbfb2cd863968e5f89169768cf6a2 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 16 Feb 2019 17:03:08 +0100 Subject: [PATCH] Order imports (#21117) --- homeassistant/components/owlet/__init__.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/owlet/__init__.py b/homeassistant/components/owlet/__init__.py index c29f937183f..b7ad7ab9152 100644 --- a/homeassistant/components/owlet/__init__.py +++ b/homeassistant/components/owlet/__init__.py @@ -3,12 +3,13 @@ import logging import voluptuous as vol -from homeassistant.const import (CONF_USERNAME, CONF_PASSWORD, CONF_NAME) +from homeassistant.const import CONF_NAME, CONF_PASSWORD, CONF_USERNAME import homeassistant.helpers.config_validation as cv from homeassistant.helpers.discovery import load_platform -from .const import SENSOR_MOVEMENT, SENSOR_BASE_STATION, SENSOR_HEART_RATE, \ - SENSOR_OXYGEN_LEVEL +from .const import ( + SENSOR_BASE_STATION, SENSOR_HEART_RATE, SENSOR_MOVEMENT, + SENSOR_OXYGEN_LEVEL) REQUIREMENTS = ['pyowlet==1.0.2'] @@ -20,7 +21,7 @@ SENSOR_TYPES = [ SENSOR_OXYGEN_LEVEL, SENSOR_HEART_RATE, SENSOR_BASE_STATION, - SENSOR_MOVEMENT + SENSOR_MOVEMENT, ] CONFIG_SCHEMA = vol.Schema({ @@ -43,8 +44,8 @@ def setup(hass, config): try: device = PyOwlet(username, password) except KeyError: - _LOGGER.error('Owlet authentication failed. Please verify your ' - 'credentials are correct.') + _LOGGER.error("Owlet authentication failed. Please verify your " + "credentials are correct") return False device.update_properties()