mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 11:47:06 +00:00
Move imports for hp_ilo components (#27906)
This commit is contained in:
parent
2110fea02b
commit
0cd55d6716
@ -2,6 +2,7 @@
|
|||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
import hpilo
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
||||||
@ -180,8 +181,6 @@ class HpIloData:
|
|||||||
@Throttle(MIN_TIME_BETWEEN_UPDATES)
|
@Throttle(MIN_TIME_BETWEEN_UPDATES)
|
||||||
def update(self):
|
def update(self):
|
||||||
"""Get the latest data from HP iLO."""
|
"""Get the latest data from HP iLO."""
|
||||||
import hpilo
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.data = hpilo.Ilo(
|
self.data = hpilo.Ilo(
|
||||||
hostname=self._host,
|
hostname=self._host,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user