From 7aa286b2c20e8f1fcb5e3c2bfb8bca63d51ff864 Mon Sep 17 00:00:00 2001 From: Florian Heigl Date: Mon, 24 Jan 2022 02:28:17 +0100 Subject: [PATCH] Update README.md - py3 syntax make the example work ootb --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3d32c88..f3b486d 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ API Example from pyunifi.controller import Controller c = Controller('192.168.1.99', 'admin', 'p4ssw0rd') for ap in c.get_aps(): - print 'AP named %s with MAC %s' % (ap.get('name'), ap['mac']) + print('AP named %s with MAC %s' % (ap.get('name'), ap['mac'])) ``` See also the scripts `unifi-ls-clients` and `unifi-low-rssi-reconnect` for more