mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 10:47:10 +00:00
Move imports to top for greeneye_monitor (#29414)
This commit is contained in:
parent
88c1a630d8
commit
4a7004b791
@ -1,6 +1,7 @@
|
|||||||
"""Support for monitoring a GreenEye Monitor energy monitor."""
|
"""Support for monitoring a GreenEye Monitor energy monitor."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from greeneye import Monitors
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
@ -110,7 +111,6 @@ CONFIG_SCHEMA = vol.Schema({DOMAIN: COMPONENT_SCHEMA}, extra=vol.ALLOW_EXTRA)
|
|||||||
|
|
||||||
async def async_setup(hass, config):
|
async def async_setup(hass, config):
|
||||||
"""Set up the GreenEye Monitor component."""
|
"""Set up the GreenEye Monitor component."""
|
||||||
from greeneye import Monitors
|
|
||||||
|
|
||||||
monitors = Monitors()
|
monitors = Monitors()
|
||||||
hass.data[DATA_GREENEYE_MONITOR] = monitors
|
hass.data[DATA_GREENEYE_MONITOR] = monitors
|
||||||
|
Loading…
x
Reference in New Issue
Block a user