mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +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 logging
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
import xmltodict
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
||||||
@ -101,7 +102,6 @@ class ZestimateDataSensor(Entity):
|
|||||||
|
|
||||||
def update(self):
|
def update(self):
|
||||||
"""Get the latest data and update the states."""
|
"""Get the latest data and update the states."""
|
||||||
import xmltodict
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
response = requests.get(_RESOURCE, params=self.params, timeout=5)
|
response = requests.get(_RESOURCE, params=self.params, timeout=5)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user