Skip to content

Commit ce4ab83

Browse files
committed
fix the searchSiteIotEndpoints path
1 parent ec98deb commit ce4ab83

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

src/mistapi/api/v1/sites/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
from mistapi.api.v1.sites import (
1414
sites,
15-
search,
1615
aamwprofiles,
1716
alarms,
1817
analyze_spectrum,
@@ -35,6 +34,7 @@
3534
guests,
3635
idpprofiles,
3736
insights,
37+
iotendpoints,
3838
licenses,
3939
location,
4040
maps,
@@ -82,7 +82,6 @@
8282

8383
__all__ = [
8484
"sites",
85-
"search",
8685
"aamwprofiles",
8786
"alarms",
8887
"analyze_spectrum",
@@ -105,6 +104,7 @@
105104
"guests",
106105
"idpprofiles",
107106
"insights",
107+
"iotendpoints",
108108
"licenses",
109109
"location",
110110
"maps",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def searchSiteIotEndpoints(
5555
response from the API call
5656
"""
5757

58-
uri = f"/api/v1/sites/{site_id}//search"
58+
uri = f"/api/v1/sites/{site_id}/iotendpoints/search"
5959
query_params: dict[str, str] = {}
6060
if ap_mac:
6161
query_params["ap_mac"] = str(ap_mac)

src/mistapi/api/v1/sites/sle.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@
1010
--------------------------------------------------------------------------------
1111
"""
1212

13-
import deprecation
14-
1513
from mistapi import APISession as _APISession
1614
from mistapi.__api_response import APIResponse as _APIResponse
15+
import deprecation
1716

1817

1918
@deprecation.deprecated(

0 commit comments

Comments
 (0)