From 0d2f5cf7ed8f5d636386bb0be930ed90320c5188 Mon Sep 17 00:00:00 2001 From: tkdrob Date: Fri, 12 Feb 2021 05:42:34 -0500 Subject: [PATCH] Use core constants for plugwise (#46414) --- homeassistant/components/plugwise/config_flow.py | 8 +------- homeassistant/components/plugwise/const.py | 1 - homeassistant/components/plugwise/gateway.py | 1 - 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/homeassistant/components/plugwise/config_flow.py b/homeassistant/components/plugwise/config_flow.py index e0d22627737..247e0802eae 100644 --- a/homeassistant/components/plugwise/config_flow.py +++ b/homeassistant/components/plugwise/config_flow.py @@ -19,12 +19,7 @@ from homeassistant.core import callback from homeassistant.helpers.aiohttp_client import async_get_clientsession from homeassistant.helpers.typing import DiscoveryInfoType -from .const import ( # pylint:disable=unused-import - DEFAULT_PORT, - DEFAULT_SCAN_INTERVAL, - DOMAIN, - ZEROCONF_MAP, -) +from .const import DEFAULT_PORT, DEFAULT_SCAN_INTERVAL, DOMAIN, ZEROCONF_MAP _LOGGER = logging.getLogger(__name__) @@ -152,7 +147,6 @@ class PlugwiseConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): async def async_step_user(self, user_input=None): """Handle the initial step.""" - # PLACEHOLDER USB vs Gateway Logic return await self.async_step_user_gateway() diff --git a/homeassistant/components/plugwise/const.py b/homeassistant/components/plugwise/const.py index c6ef43af602..fb8911d6fc7 100644 --- a/homeassistant/components/plugwise/const.py +++ b/homeassistant/components/plugwise/const.py @@ -22,7 +22,6 @@ DEFAULT_SCAN_INTERVAL = {"power": 10, "stretch": 60, "thermostat": 60} DEFAULT_TIMEOUT = 60 # Configuration directives -CONF_BASE = "base" CONF_GAS = "gas" CONF_MAX_TEMP = "max_temp" CONF_MIN_TEMP = "min_temp" diff --git a/homeassistant/components/plugwise/gateway.py b/homeassistant/components/plugwise/gateway.py index a0bf23986bd..c14395319d4 100644 --- a/homeassistant/components/plugwise/gateway.py +++ b/homeassistant/components/plugwise/gateway.py @@ -203,7 +203,6 @@ class SmileGateway(CoordinatorEntity): @property def device_info(self) -> Dict[str, any]: """Return the device information.""" - device_information = { "identifiers": {(DOMAIN, self._dev_id)}, "name": self._entity_name,