Move imports in switchmate component (#27646)

* move imports in switchmate component

* fix: bring back pylint ignore line
pull/27672/head
Michał Mrozek 2019-10-14 23:20:35 +02:00 committed by Paulus Schoutsen
parent 9aa28dfd54
commit 97478d1ef4
1 changed files with 5 additions and 5 deletions

View File

@ -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