Skip to content
Snippets Groups Projects
Commit 9ad49f75 authored by jkerdreu's avatar jkerdreu
Browse files

drop print

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/trunk@2019 b32b6428-25c9-4566-ad07-03861ab6144f
parent 9a49e695
Branches
No related tags found
No related merge requests found
......@@ -117,7 +117,7 @@ class NAModule(object): # NWS: netatmo weather station
elif sensor_type=="batterymeter" :
return ["battery_level"]
else:
print("invalid sensor type !")
logger.warn("invalid sensor type !")
class ConfigParser: # netatmo weather station config
......@@ -126,7 +126,7 @@ class ConfigParser: # netatmo weather station config
def update(self):
if 'config' not in self.cfg:
print("invalid config file !!!")
logger.error("invalid config file !!!")
if ('gateway' not in self.cfg)or('base_addr' not in self.cfg['gateway'])or(not tools.is_valid_addr(self.cfg['gateway']["base_addr"])):
self.cfg['gateway']={}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment