def _read_base_device(p_xml, p_version): """ @param p_xml: is the XML Element for the entire device @param p_version: is some helper data to get the correct information from the config file. @return: a Light data object with the base info filled in """ l_obj = LightData() l_obj = LightingCoreAPI.read_core_lighting_xml(l_obj, p_xml, p_version) l_obj.DeviceType = 1 l_obj.DeviceSubType = 2 return l_obj