diff --git a/homeassistant/components/thermoworks_smoke/sensor.py b/homeassistant/components/thermoworks_smoke/sensor.py
index 70a16287fcc245bb13a3cf3f83bfc98f45d4ab1e..d5af021108a268a70740a5b6b92799acb753f928 100644
--- a/homeassistant/components/thermoworks_smoke/sensor.py
+++ b/homeassistant/components/thermoworks_smoke/sensor.py
@@ -9,18 +9,21 @@ https://home-assistant.io/components/sensor.thermoworks_smoke/
 import logging
 
 from requests import RequestException
+from requests.exceptions import HTTPError
+from stringcase import camelcase, snakecase
+import thermoworks_smoke
 import voluptuous as vol
 
-import homeassistant.helpers.config_validation as cv
 from homeassistant.components.sensor import PLATFORM_SCHEMA
 from homeassistant.const import (
-    TEMP_FAHRENHEIT,
+    ATTR_BATTERY_LEVEL,
     CONF_EMAIL,
-    CONF_PASSWORD,
-    CONF_MONITORED_CONDITIONS,
     CONF_EXCLUDE,
-    ATTR_BATTERY_LEVEL,
+    CONF_MONITORED_CONDITIONS,
+    CONF_PASSWORD,
+    TEMP_FAHRENHEIT,
 )
+import homeassistant.helpers.config_validation as cv
 from homeassistant.helpers.entity import Entity
 
 _LOGGER = logging.getLogger(__name__)
@@ -65,8 +68,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
 
 def setup_platform(hass, config, add_entities, discovery_info=None):
     """Set up the thermoworks sensor."""
-    import thermoworks_smoke
-    from requests.exceptions import HTTPError
 
     email = config[CONF_EMAIL]
     password = config[CONF_PASSWORD]
@@ -144,7 +145,6 @@ class ThermoworksSmokeSensor(Entity):
 
     def update(self):
         """Get the monitored data from firebase."""
-        from stringcase import camelcase, snakecase
 
         try:
             values = self.mgr.data(self.serial)