Move imports in repetier component (#28093)
This commit is contained in:
parent
4a3d6208ae
commit
d9b890a402
1 changed files with 2 additions and 3 deletions
|
@ -1,7 +1,8 @@
|
|||
"""Support for Repetier-Server sensors."""
|
||||
import logging
|
||||
from datetime import timedelta
|
||||
import logging
|
||||
|
||||
import pyrepetier
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.const import (
|
||||
|
@ -160,8 +161,6 @@ CONFIG_SCHEMA = vol.Schema(
|
|||
|
||||
def setup(hass, config):
|
||||
"""Set up the Repetier Server component."""
|
||||
import pyrepetier
|
||||
|
||||
hass.data[REPETIER_API] = {}
|
||||
|
||||
for repetier in config[DOMAIN]:
|
||||
|
|
Loading…
Add table
Reference in a new issue