async def async_set_port_poe_mode(self, port_idx, mode):
no_existing_config = True<EOL>for port_override in self.port_overrides:<EOL><INDENT>if port_idx == port_override['<STR_LIT>']:<EOL><INDENT>port_override['<STR_LIT>'] = mode<EOL>no_existing_config = False<EOL>break<EOL><DEDENT><DEDENT>if no_existing_config:<EOL><INDENT>self.port_overrides.append({<EOL>'<STR_LIT>': port_idx,<EOL>'<STR_LIT>': self.ports[port_idx].portconf_id,<EOL>'<STR_LIT>': mode<EOL>})<EOL><DEDENT>url = '<STR_LIT>' + self.id<EOL>data = {'<STR_LIT>': self.port_overrides}<EOL>await self._request('<STR_LIT>', url, json=data)<EOL>
Set port poe mode.

        Auto, 24v, passthrough, off.
        Make sure to not overwrite any existing configs.