diff --git a/homeassistant/components/tellduslive/__init__.py b/homeassistant/components/tellduslive/__init__.py index 70cc8848814..0473c52ed92 100644 --- a/homeassistant/components/tellduslive/__init__.py +++ b/homeassistant/components/tellduslive/__init__.py @@ -7,13 +7,12 @@ from tellduslive import DIM, TURNON, UP, Session import voluptuous as vol from homeassistant import config_entries -from homeassistant.const import CONF_SCAN_INTERVAL +from homeassistant.const import CONF_HOST, CONF_SCAN_INTERVAL import homeassistant.helpers.config_validation as cv from homeassistant.helpers.dispatcher import async_dispatcher_send from homeassistant.helpers.event import async_call_later from .const import ( - CONF_HOST, DOMAIN, KEY_SCAN_INTERVAL, KEY_SESSION, @@ -52,7 +51,6 @@ INTERVAL_TRACKER = f"{DOMAIN}_INTERVAL" async def async_setup_entry(hass, entry): """Create a tellduslive session.""" - conf = entry.data[KEY_SESSION] if CONF_HOST in conf: diff --git a/homeassistant/components/tellduslive/const.py b/homeassistant/components/tellduslive/const.py index 8d9f28cc5cf..6b3bb1c6437 100644 --- a/homeassistant/components/tellduslive/const.py +++ b/homeassistant/components/tellduslive/const.py @@ -1,13 +1,6 @@ """Consts used by TelldusLive.""" from datetime import timedelta -from homeassistant.const import ( # noqa: F401 pylint: disable=unused-import - ATTR_BATTERY_LEVEL, - CONF_HOST, - CONF_TOKEN, - DEVICE_DEFAULT_NAME, -) - APPLICATION_NAME = "Home Assistant" DOMAIN = "tellduslive" diff --git a/homeassistant/components/tellduslive/entry.py b/homeassistant/components/tellduslive/entry.py index 4453622b21e..67a59fc8dab 100644 --- a/homeassistant/components/tellduslive/entry.py +++ b/homeassistant/components/tellduslive/entry.py @@ -93,7 +93,6 @@ class TelldusLiveEntity(Entity): @property def _battery_level(self): """Return the battery level of a device.""" - if self.device.battery == BATTERY_LOW: return 1 if self.device.battery == BATTERY_UNKNOWN: