Instead of using -1 as a magic value, the typical way to do that is to check if the value is None.

None is not a valid value for any of these arguments:
* ip_address_id = int
* port = int
* enabled = bool
* hc_type = int
* weight = int (or float?)

```python
if opt is not None:
    # Do something with the option
```