Move imports in zigbee component (#27383)

pull/27407/head
Quentame 2019-10-10 18:56:07 +02:00 committed by Paulus Schoutsen
parent ec08c251ea
commit 6364da1150
1 changed files with 5 additions and 6 deletions

View File

@ -2,6 +2,11 @@
import logging
from binascii import hexlify, unhexlify
import xbee_helper.const as xb_const
from xbee_helper import ZigBee
from xbee_helper.device import convert_adc
from xbee_helper.exceptions import ZigBeeException, ZigBeeTxFailure
from serial import Serial, SerialException
import voluptuous as vol
from homeassistant.const import (
@ -75,12 +80,6 @@ def setup(hass, config):
global ZIGBEE_EXCEPTION
global ZIGBEE_TX_FAILURE
import xbee_helper.const as xb_const
from xbee_helper import ZigBee
from xbee_helper.device import convert_adc
from xbee_helper.exceptions import ZigBeeException, ZigBeeTxFailure
from serial import Serial, SerialException
GPIO_DIGITAL_OUTPUT_LOW = xb_const.GPIO_DIGITAL_OUTPUT_LOW
GPIO_DIGITAL_OUTPUT_HIGH = xb_const.GPIO_DIGITAL_OUTPUT_HIGH
ADC_PERCENTAGE = xb_const.ADC_PERCENTAGE