From 54d63c63c30488a2340c204bd2ae18d9be06faf5 Mon Sep 17 00:00:00 2001 From: Quentame Date: Sat, 12 Oct 2019 21:54:16 +0200 Subject: [PATCH] Move imports in uscis component (#27481) --- homeassistant/components/uscis/sensor.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/uscis/sensor.py b/homeassistant/components/uscis/sensor.py index bda6ad9041b..3f5175ad09d 100644 --- a/homeassistant/components/uscis/sensor.py +++ b/homeassistant/components/uscis/sensor.py @@ -1,7 +1,8 @@ """Support for USCIS Case Status.""" - import logging from datetime import timedelta + +import uscisstatus import voluptuous as vol from homeassistant.helpers.entity import Entity @@ -67,8 +68,6 @@ class UscisSensor(Entity): @Throttle(MIN_TIME_BETWEEN_UPDATES) def update(self): """Fetch data from the USCIS website and update state attributes.""" - import uscisstatus - try: status = uscisstatus.get_case_status(self._case_id) self._attributes = {self.CURRENT_STATUS: status["status"]}