Move imports in zestimate component (#27386)
This commit is contained in:
committed by
Paulus Schoutsen
parent
f5560e2b18
commit
ec08c251ea
@@ -3,6 +3,7 @@ from datetime import timedelta
|
||||
import logging
|
||||
|
||||
import requests
|
||||
import xmltodict
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
||||
@@ -101,7 +102,6 @@ class ZestimateDataSensor(Entity):
|
||||
|
||||
def update(self):
|
||||
"""Get the latest data and update the states."""
|
||||
import xmltodict
|
||||
|
||||
try:
|
||||
response = requests.get(_RESOURCE, params=self.params, timeout=5)
|
||||
|
||||
Reference in New Issue
Block a user