mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 14:15:12 +02:00
Move imports in loopenergy component (#28017)
This commit is contained in:
committed by
Fabian Affolter
parent
8922d702ae
commit
90731555f8
@@ -1,6 +1,7 @@
|
|||||||
"""Support for Loop Energy sensors."""
|
"""Support for Loop Energy sensors."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
import pyloopenergy
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
||||||
@@ -54,8 +55,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
|||||||
|
|
||||||
def setup_platform(hass, config, add_entities, discovery_info=None):
|
def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||||
"""Set up the Loop Energy sensors."""
|
"""Set up the Loop Energy sensors."""
|
||||||
import pyloopenergy
|
|
||||||
|
|
||||||
elec_config = config.get(CONF_ELEC)
|
elec_config = config.get(CONF_ELEC)
|
||||||
gas_config = config.get(CONF_GAS, {})
|
gas_config = config.get(CONF_GAS, {})
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user