def add_whitelist_entry(self, address, netmask, note=None):
result = self._client.post("<STR_LIT>".format(Profile.api_endpoint),<EOL>data={<EOL>"<STR_LIT:address>": address,<EOL>"<STR_LIT>": netmask,<EOL>"<STR_LIT>": note,<EOL>})<EOL>if not '<STR_LIT:id>' in result:<EOL><INDENT>raise UnexpectedResponseError("<STR_LIT>")<EOL><DEDENT>return WhitelistEntry(result['<STR_LIT:id>'], self._client, json=result)<EOL>
Adds a new entry to this user's IP whitelist, if enabled