Move imports for hp_ilo components (#27906)
This commit is contained in:
1 parent
2110fea02b
commit
0cd55d6716
1 file changed
+1
-2
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user