src/unifi_api/api.py
def list_devices(self, site='default', device_mac=None):
        '''
            List devices managed by controller on a given site
            -------------------------
            returns an array of devices info on success
            params:
                Name        | required  | description
                -----------------------------------------
                site        |   True    | site name to authorize guest, defaults to `default`
                device_mac  |   False   | device mac address
        '''
        # r = self.get(self.endpoint('/api/s/%s/stat/device/%s' % (site, device_mac.lower().replace(':', '').replace('-', '') or '')))
        r = self.get(self.endpoint('/api/s/%s/stat/device/%s' % (site, device_mac or '')))
        return self.process_response(r)

            List devices managed by controller on a given site
            -------------------------
            returns an array of devices info on success
            params:
                Name        | required  | description
                -----------------------------------------
                site        |   True    | site name to authorize guest, defaults to `default`
                device_mac  |   False   | device mac address
        
List devices managed by controller on a given site
returns an array of devices info on success
params:
Name        | required  | description

site        |   True    | site name to authorize guest, defaults to `default`
device_mac  |   False   | device mac address
List devices managed by controller on a given site returns an array of devices info on success params : Name | required | description site | True | site name to authorize guest defaults to ` default ` device_mac | False | device mac address
def list_devices(self, site='default', device_mac=None):
        r = self.get(self.endpoint('/api/s/%s/stat/device/%s' % (site, device_mac or '')))
        return self.process_response(r)
def list_devices ( self , site = 'default' , device_mac = None ) : r = self . get ( self . endpoint ( '/api/s/%s/stat/device/%s' % ( site , device_mac or '' ) ) ) return self . process_response ( r )
List devices managed by controller on a given site
returns an array of devices info on success
params:
Name        | required  | description
List devices managed by controller on a given site returns an array of devices info on success params : Name | required | description
'''
            List devices managed by controller on a given site
            -------------------------
            returns an array of devices info on success
            params:
                Name        | required  | description
                -----------------------------------------
                site        |   True    | site name to authorize guest, defaults to `default`
                device_mac  |   False   | device mac address
        ''' # r = self.get(self.endpoint('/api/s/%s/stat/device/%s' % (site, device_mac.lower().replace(':', '').replace('-', '') or '')))
self
site
device_mac