def get_YourProfile_yaml(self): ele_list = [] file_path = get_rootpath() + "/config/initialElement/YourProfile.yaml" with open(file_path) as f: message = yaml.load(f, Loader=yaml.Loader) # print(message) for ele in message: ele_list.append(ele) return ele_list
def get_TempStatus_yaml(self): ele_list = [] file_path = get_rootpath() + "/config/deviceStatus/TempStatus.yaml" with open(file_path, encoding="utf-8") as f: message = yaml.load(f, Loader=yaml.Loader) # print(message) for ele in message: ele_list.append(ele) return ele_list
def get_dashboard_yaml(self): ele_list = [] file_path = get_rootpath() + "/config/initialElement/dashboard.yaml" with open(file_path) as f: message = yaml.load(f, Loader=yaml.Loader) for ele in message: ele_list.append(ele) # print(ele_list) return ele_list