pyunifi icon indicating copy to clipboard operation
pyunifi copied to clipboard

Add forget_client (using forget_sta api)

Open yuphing-ong opened this issue 5 years ago • 2 comments

Nothing new, just cleaning up the lint errors from pull request #43 that stops it from being accepted.

yuphing-ong avatar Oct 22 '19 03:10 yuphing-ong

@yuphing-ong Can the block_client and unblock_client also use the new _macs_cmd function?

finish06 avatar Oct 23 '19 23:10 finish06

@yuphing-ong Can the block_client and unblock_client also use the new _macs_cmd function?

Unfortunately no. FYI _macs_cmd is just sending param 'macs':MACS, where MACS must be a list of macs (one or more). I'm not implementing any iteration, it's just what the Unifi API is expecting.

I'm using https://github.com/Art-of-WiFi/UniFi-API-client/blob/master/src/Client.php as a reference, so block_sta and unblock_sta only take cmd param 'mac' and a single mac, whereas forget_sta takes the param 'macs': '[...]'.

yuphing-ong avatar Oct 24 '19 01:10 yuphing-ong