def LoadXml(self, p_pyhouse_obj): """ Load the Mqtt xml info. """ l_obj = irrigationXml.read_irrigation_xml(p_pyhouse_obj) p_pyhouse_obj.House.Irrigation = l_obj LOG.info('Loaded XML') return l_obj
def SaveXml(self, p_xml): (l_xml, l_count) = irrigationXml.write_irrigation_xml(self.m_pyhouse_obj.House.Irrigation) p_xml.append(l_xml) LOG.info("Saved {} Irrigation XML.".format(l_count)) return p_xml
def LoadXml(self, p_pyhouse_obj): """ Load the Mqtt xml info. """ l_obj = irrigationXml.read_irrigation_xml(p_pyhouse_obj) return l_obj