mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Move imports in zestimate component (#27386)
This commit is contained in:
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user