_read_unwanted_data_fix is now controlled via settings

This commit is contained in:
raspberry
2018-02-22 09:39:54 +03:00
parent fadd23e8cd
commit 3e5e71035d
6 changed files with 26 additions and 17 deletions
+9 -9
View File
@@ -13,12 +13,12 @@ def load_yaml(file):
_LOGGER.error("Can't load yaml with sids %r (%r)" % (file, e))
def get_gateway_password(config, ip=""):
if (config == None):
raise "Config is null"
configGateway = config.get("gateway", None)
if (configGateway == None):
raise "Config gateway is null"
password = configGateway.get("password", None)
if (password == None):
raise "Config gateway passowrd is null"
return password
if (config == None):
raise "Config is null"
configGateway = config.get("gateway", None)
if (configGateway == None):
raise "Config gateway is null"
password = configGateway.get("password", None)
if (password == None):
raise "Config gateway passowrd is null"
return password