Move imports in switchmate component (#27646)
* move imports in switchmate component * fix: bring back pylint ignore linepull/27672/head
parent
9aa28dfd54
commit
97478d1ef4
|
@ -1,12 +1,14 @@
|
||||||
"""Support for Switchmate."""
|
"""Support for Switchmate."""
|
||||||
import logging
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
import logging
|
||||||
|
|
||||||
|
# pylint: disable=import-error, no-member, no-value-for-parameter
|
||||||
|
import switchmate
|
||||||
import voluptuous as vol
|
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
|
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__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
@ -37,8 +39,6 @@ class SwitchmateEntity(SwitchDevice):
|
||||||
|
|
||||||
def __init__(self, mac, name, flip_on_off) -> None:
|
def __init__(self, mac, name, flip_on_off) -> None:
|
||||||
"""Initialize the Switchmate."""
|
"""Initialize the Switchmate."""
|
||||||
# pylint: disable=import-error, no-member, no-value-for-parameter
|
|
||||||
import switchmate
|
|
||||||
|
|
||||||
self._mac = mac
|
self._mac = mac
|
||||||
self._name = name
|
self._name = name
|
||||||
|
|
Loading…
Reference in New Issue