mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Move imports to top for idteck_prox (#29423)
This commit is contained in:
parent
56b60577de
commit
6c45c1969b
@ -1,15 +1,16 @@
|
|||||||
"""Component for interfacing RFK101 proximity card readers."""
|
"""Component for interfacing RFK101 proximity card readers."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from rfk101py.rfk101py import rfk101py
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
import homeassistant.helpers.config_validation as cv
|
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
CONF_HOST,
|
CONF_HOST,
|
||||||
CONF_PORT,
|
|
||||||
CONF_NAME,
|
CONF_NAME,
|
||||||
|
CONF_PORT,
|
||||||
EVENT_HOMEASSISTANT_STOP,
|
EVENT_HOMEASSISTANT_STOP,
|
||||||
)
|
)
|
||||||
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -68,7 +69,6 @@ class IdteckReader:
|
|||||||
|
|
||||||
def connect(self):
|
def connect(self):
|
||||||
"""Connect to the reader."""
|
"""Connect to the reader."""
|
||||||
from rfk101py.rfk101py import rfk101py
|
|
||||||
|
|
||||||
self._connection = rfk101py(self._host, self._port, self._callback)
|
self._connection = rfk101py(self._host, self._port, self._callback)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user