mirror of
https://github.com/home-assistant/core.git
synced 2025-08-15 10:31:39 +02:00
Move imports to top for iota (#29399)
This commit is contained in:
committed by
Fabian Affolter
parent
1d65670a71
commit
c0c1d68858
@@ -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)
|
||||
|
Reference in New Issue
Block a user