If a sleep tracking device is wearable, a partner or pet should not influence the data.
If the device is not wearable, a person can typically program certain settings to account for partners. As long as pets do not interfere with a person's breathing or heart rate during sleep, they should not affect the results.