Skip to content
Snippets Groups Projects
Commit 97478d1e authored by Michał Mrozek's avatar Michał Mrozek Committed by Paulus Schoutsen
Browse files

Move imports in switchmate component (#27646)

* move imports in switchmate component

* fix: bring back pylint ignore line
parent 9aa28dfd
No related branches found
No related tags found
No related merge requests found
"""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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment