mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Move imports to top in wirelesstag (#33624)
This commit is contained in:
parent
46fa20411e
commit
211ed3d596
@ -3,7 +3,7 @@ import logging
|
|||||||
|
|
||||||
from requests.exceptions import ConnectTimeout, HTTPError
|
from requests.exceptions import ConnectTimeout, HTTPError
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
from wirelesstagpy import NotificationConfig as NC
|
from wirelesstagpy import NotificationConfig as NC, WirelessTags, WirelessTagsException
|
||||||
|
|
||||||
from homeassistant import util
|
from homeassistant import util
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
@ -190,8 +190,6 @@ def setup(hass, config):
|
|||||||
password = conf.get(CONF_PASSWORD)
|
password = conf.get(CONF_PASSWORD)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from wirelesstagpy import WirelessTags, WirelessTagsException
|
|
||||||
|
|
||||||
wirelesstags = WirelessTags(username=username, password=password)
|
wirelesstags = WirelessTags(username=username, password=password)
|
||||||
|
|
||||||
platform = WirelessTagPlatform(hass, wirelesstags)
|
platform = WirelessTagPlatform(hass, wirelesstags)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user