How to add filter to mitmdump while generating har file

I’m trying to create har file while filtering data from specific IP address 192.168.1.3 my command is like this:
mitmdump -s ./har_dump.py --set hardump=./dump.har ~src 192.168.1.3
But still see traffic from other devices in dump.har file.
Is my filter wrong?
how can I use the correct one?
Thank you