Move imports for hp_ilo components (#27906)

This commit is contained in:
Brig Lamoreaux 2019-10-18 20:57:47 -07:00 committed by Paulus Schoutsen
parent 2110fea02b
commit 0cd55d6716

View File

@ -2,6 +2,7 @@
from datetime import timedelta
import logging
import hpilo
import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA
@ -180,8 +181,6 @@ class HpIloData:
@Throttle(MIN_TIME_BETWEEN_UPDATES)
def update(self):
"""Get the latest data from HP iLO."""
import hpilo
try:
self.data = hpilo.Ilo(
hostname=self._host,