From 6364da115004f4f0074ff6ab17173526237ab3c7 Mon Sep 17 00:00:00 2001 From: Quentame Date: Thu, 10 Oct 2019 18:56:07 +0200 Subject: [PATCH] Move imports in zigbee component (#27383) --- homeassistant/components/zigbee/__init__.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/homeassistant/components/zigbee/__init__.py b/homeassistant/components/zigbee/__init__.py index 31cbc0c65b6..e74726a70f9 100644 --- a/homeassistant/components/zigbee/__init__.py +++ b/homeassistant/components/zigbee/__init__.py @@ -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