diff --git a/homeassistant/components/switchmate/switch.py b/homeassistant/components/switchmate/switch.py
index 950a8a67930ce643032ce53e8246677ce76be2bc..6abbfd5fae5e268b7ccf0c3c28a95dd456c822cf 100644
--- a/homeassistant/components/switchmate/switch.py
+++ b/homeassistant/components/switchmate/switch.py
@@ -1,12 +1,14 @@
 """Support for Switchmate."""
-import logging
 from datetime import timedelta
+import logging
 
+# pylint: disable=import-error, no-member, no-value-for-parameter
+import switchmate
 import voluptuous as vol
 
+from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchDevice
+from homeassistant.const import CONF_MAC, CONF_NAME
 import homeassistant.helpers.config_validation as cv
-from homeassistant.components.switch import SwitchDevice, PLATFORM_SCHEMA
-from homeassistant.const import CONF_NAME, CONF_MAC
 
 _LOGGER = logging.getLogger(__name__)
 
@@ -37,8 +39,6 @@ class SwitchmateEntity(SwitchDevice):
 
     def __init__(self, mac, name, flip_on_off) -> None:
         """Initialize the Switchmate."""
-        # pylint: disable=import-error, no-member, no-value-for-parameter
-        import switchmate
 
         self._mac = mac
         self._name = name