Skip to content
Snippets Groups Projects
Commit 2f1afe45 authored by jkerdreu's avatar jkerdreu
Browse files

Fix spawn import


git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@2844 b32b6428-25c9-4566-ad07-03861ab6144f
parent e710c0a6
No related branches found
No related tags found
No related merge requests found
from xaal.lib import Engine,tools,Device
from xaal.lib import tools,Device,helpers
from . import netatmo
import platform
import logging
......@@ -7,7 +8,7 @@ RATE = 300 # update every 5 min
PACKAGE_NAME = "xaal.netatmo"
logger = logging.getLogger(PACKAGE_NAME)
from xaal.aiolib.core import spawn
class GW:
......@@ -75,7 +76,7 @@ class GW:
if m.macId == macId :
m.update_sensors(attr)
@spawn
@helpers.spawn
def readweatherstation(self):
netatmo_data = netatmo.API(self.cfg).get_data()
if netatmo_data == None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment