(file_name)
return None
Load json credentials from file.
Load json credentials from file.
Load json credentials from file .
def json_load(file_name):
    """Load json credentials from file."""
    try:
        with open(file_name, "r") as json_file:
            data = json.load(json_file)
        return data
    except FileNotFoundError:
        _LOGGER.error("Could not find %s", file_name)
    except json.decoder.JSONDecodeError:
        _LOGGER.error("File %s has improperly formatted json", file_name)
    return None
def json_load ( file_name ) : try : with open ( file_name , "r" ) as json_file : data = json . load ( json_file ) return data except FileNotFoundError : _LOGGER . error ( "Could not find %s" , file_name ) except json . decoder . JSONDecodeError : _LOGGER . error ( "File %s has improperly formatted json" , file_name ) return None