When callingget_device_id_by_address (e.g. called by add_device) on an VideoIPath system without devices in inventory, the method raises a ValueError due to strict response validation. This prevents basic inventory API usage in fresh or test systems.
✅ Expected: Return None if no device is found, without raising an exception.
❌ Current: Raises ValueError("Response data is empty.")
Proposed solution: Handle empty device lists gracefully and return None as intended.
When calling
get_device_id_by_address(e.g. called byadd_device) on an VideoIPath system without devices in inventory, the method raises aValueErrordue to strict response validation. This prevents basic inventory API usage in fresh or test systems.✅ Expected: Return
Noneif no device is found, without raising an exception.❌ Current: Raises ValueError("Response data is empty.")
Proposed solution: Handle empty device lists gracefully and return
Noneas intended.