From 97478d1ef478aea3f2b3680598260d62de0c3891 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Mrozek?= Date: Mon, 14 Oct 2019 23:20:35 +0200 Subject: [PATCH] Move imports in switchmate component (#27646) * move imports in switchmate component * fix: bring back pylint ignore line --- homeassistant/components/switchmate/switch.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/switchmate/switch.py b/homeassistant/components/switchmate/switch.py index 950a8a67930..6abbfd5fae5 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