Move imports to top for stiebel_eltron (#29224)

This commit is contained in:
springstan 2019-11-29 21:32:03 +01:00 committed by Martin Hjelmare
parent 7d90b1f9ec
commit 39bf1b5f5d

View File

@ -2,6 +2,7 @@
from datetime import timedelta
import logging
from pystiebeleltron import pystiebeleltron
import voluptuous as vol
from homeassistant.components.modbus import (
@ -55,7 +56,6 @@ class StiebelEltronData:
def __init__(self, name, modbus_client):
"""Init the STIEBEL ELTRON data object."""
from pystiebeleltron import pystiebeleltron
self.api = pystiebeleltron.StiebelEltronAPI(modbus_client, 1)