def write_core_lighting_xml(p_element_tag, p_device_obj): """ @param p_element_tag: is the tag/name of the element that will be created @param p_device_obj: is the device object that holds the device information. @return: the XML element for the device with some sub-elements already attached. """ l_xml = deviceXML.write_base_device_object_xml(p_element_tag, p_device_obj) return l_xml
def _read_base(p_device_obj, p_entry_xml): deviceXML.read_base_device_object_xml(p_device_obj, p_entry_xml) return p_device_obj # for testing
def _write_thermostat_base(p_tag_name, p_obj): l_xml = deviceXML.write_base_device_object_xml(p_tag_name, p_obj) return l_xml
def _read_base(p_xml): l_obj = ThermostatData() deviceXML.read_base_device_object_xml(l_obj, p_xml) return l_obj
def _read_base(p_pyhouse_obj, p_xml): l_obj = ThermostatData() deviceXML.read_base_device_object_xml(p_pyhouse_obj, l_obj, p_xml) return l_obj
def _read_base(p_pyhouse_obj, p_device_obj, p_entry_xml): deviceXML.read_base_device_object_xml(p_pyhouse_obj, p_device_obj, p_entry_xml) return p_device_obj # for testing