mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Move imports in neurio_energy component (#28035)
This commit is contained in:
parent
cc3173e3ce
commit
265a1f1fb6
@ -1,15 +1,16 @@
|
|||||||
"""Support for monitoring a Neurio energy sensor."""
|
"""Support for monitoring a Neurio energy sensor."""
|
||||||
import logging
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
|
import logging
|
||||||
|
|
||||||
|
import neurio
|
||||||
import requests.exceptions
|
import requests.exceptions
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
||||||
from homeassistant.const import CONF_API_KEY, POWER_WATT, ENERGY_KILO_WATT_HOUR
|
from homeassistant.const import CONF_API_KEY, ENERGY_KILO_WATT_HOUR, POWER_WATT
|
||||||
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.helpers.entity import Entity
|
from homeassistant.helpers.entity import Entity
|
||||||
from homeassistant.util import Throttle
|
from homeassistant.util import Throttle
|
||||||
import homeassistant.helpers.config_validation as cv
|
|
||||||
import homeassistant.util.dt as dt_util
|
import homeassistant.util.dt as dt_util
|
||||||
|
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
@ -69,8 +70,6 @@ class NeurioData:
|
|||||||
|
|
||||||
def __init__(self, api_key, api_secret, sensor_id):
|
def __init__(self, api_key, api_secret, sensor_id):
|
||||||
"""Initialize the data."""
|
"""Initialize the data."""
|
||||||
import neurio
|
|
||||||
|
|
||||||
self.api_key = api_key
|
self.api_key = api_key
|
||||||
self.api_secret = api_secret
|
self.api_secret = api_secret
|
||||||
self.sensor_id = sensor_id
|
self.sensor_id = sensor_id
|
||||||
|
Loading…
x
Reference in New Issue
Block a user