From 57ce18295959de1b6a2f661c265499056a3c7c41 Mon Sep 17 00:00:00 2001 From: tkdrob Date: Tue, 9 Feb 2021 14:21:04 -0500 Subject: [PATCH] Remove unnecessary constant from ihc (#46268) --- homeassistant/components/ihc/__init__.py | 2 -- homeassistant/components/ihc/const.py | 1 - 2 files changed, 3 deletions(-) diff --git a/homeassistant/components/ihc/__init__.py b/homeassistant/components/ihc/__init__.py index 8769f73e365..c539156b759 100644 --- a/homeassistant/components/ihc/__init__.py +++ b/homeassistant/components/ihc/__init__.py @@ -230,7 +230,6 @@ def setup(hass, config): def ihc_setup(hass, config, conf, controller_id): """Set up the IHC component.""" - url = conf[CONF_URL] username = conf[CONF_USERNAME] password = conf[CONF_PASSWORD] @@ -289,7 +288,6 @@ def autosetup_ihc_products( hass: HomeAssistantType, config, ihc_controller, controller_id ): """Auto setup of IHC products from the IHC project file.""" - project_xml = ihc_controller.get_project() if not project_xml: _LOGGER.error("Unable to read project from IHC controller") diff --git a/homeassistant/components/ihc/const.py b/homeassistant/components/ihc/const.py index 30103e2bdba..c751d7990e4 100644 --- a/homeassistant/components/ihc/const.py +++ b/homeassistant/components/ihc/const.py @@ -6,7 +6,6 @@ CONF_DIMMABLE = "dimmable" CONF_INFO = "info" CONF_INVERTING = "inverting" CONF_LIGHT = "light" -CONF_NAME = "name" CONF_NODE = "node" CONF_NOTE = "note" CONF_OFF_ID = "off_id"