From 4e1217643e164f3def9bb1e773ff59f093f35e52 Mon Sep 17 00:00:00 2001 From: RenierM26 <66512715+RenierM26@users.noreply.github.com> Date: Sun, 1 May 2022 18:50:16 +0200 Subject: [PATCH] Cleanup unused imports and isort. --- custom_components/ids_hyyp/__init__.py | 7 +++---- custom_components/ids_hyyp/config_flow.py | 7 +------ custom_components/ids_hyyp/switch.py | 7 +------ 3 files changed, 5 insertions(+), 16 deletions(-) diff --git a/custom_components/ids_hyyp/__init__.py b/custom_components/ids_hyyp/__init__.py index dbafc0f..a4e2657 100644 --- a/custom_components/ids_hyyp/__init__.py +++ b/custom_components/ids_hyyp/__init__.py @@ -1,13 +1,12 @@ -"""Support for Ezviz camera.""" +"""Support for IDS Hyyp Alarm.""" from __future__ import annotations import logging from homeassistant.config_entries import ConfigEntry -from homeassistant.const import ATTR_CODE, CONF_TIMEOUT, CONF_TOKEN, Platform +from homeassistant.const import CONF_TIMEOUT, CONF_TOKEN, Platform from homeassistant.core import HomeAssistant -from homeassistant.exceptions import ConfigEntryAuthFailed, ConfigEntryNotReady -from pyhyypapi import HTTPError, HyypApiError, HyypClient, InvalidURL +from pyhyypapi import HyypClient from .const import ( ATTR_ARM_CODE, diff --git a/custom_components/ids_hyyp/config_flow.py b/custom_components/ids_hyyp/config_flow.py index 9fe9818..2efe8ae 100644 --- a/custom_components/ids_hyyp/config_flow.py +++ b/custom_components/ids_hyyp/config_flow.py @@ -7,12 +7,7 @@ import voluptuous as vol from homeassistant.config_entries import ConfigEntry, ConfigFlow, OptionsFlow -from homeassistant.const import ( - CONF_EMAIL, - CONF_PASSWORD, - CONF_TIMEOUT, - CONF_TOKEN, -) +from homeassistant.const import CONF_EMAIL, CONF_PASSWORD, CONF_TIMEOUT, CONF_TOKEN from homeassistant.core import callback from homeassistant.data_entry_flow import FlowResult from pyhyypapi.client import HyypClient diff --git a/custom_components/ids_hyyp/switch.py b/custom_components/ids_hyyp/switch.py index f0e1767..1b390b8 100644 --- a/custom_components/ids_hyyp/switch.py +++ b/custom_components/ids_hyyp/switch.py @@ -12,12 +12,7 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback from pyhyypapi.exceptions import HTTPError, HyypApiError -from .const import ( - ATTR_BYPASS_CODE, - DATA_COORDINATOR, - DOMAIN, - SERVICE_BYPASS_ZONE, -) +from .const import ATTR_BYPASS_CODE, DATA_COORDINATOR, DOMAIN, SERVICE_BYPASS_ZONE from .coordinator import HyypDataUpdateCoordinator from .entity import HyypEntity