Move imports to top for iota (#29399)

This commit is contained in:
springstan 2019-12-04 11:10:28 +01:00 committed by Fabian Affolter
parent 1d65670a71
commit c0c1d68858

View File

@ -1,7 +1,8 @@
"""Support for IOTA wallets."""
import logging
from datetime import timedelta
import logging
from iota import Iota
import voluptuous as vol
import homeassistant.helpers.config_validation as cv
@ -77,6 +78,5 @@ class IotaDevice(Entity):
@property
def api(self):
"""Construct API object for interaction with the IRI node."""
from iota import Iota
return Iota(adapter=self.iri, seed=self._seed)