Skip to content

Commit c1ac6c5

Browse files
authored
API Endpoints for sensor apis were not accessible to the Dashboard API model. (meraki#186)
As a result, the sensor APIs are currently unusable This commit adds them to the model, so that we can use the sensor API's in the same way as the others
1 parent 6e68466 commit c1ac6c5

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

meraki/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from .api.camera import Camera
1111
from .api.cellularGateway import CellularGateway
1212
from .api.insight import Insight
13+
from .api.sensor import Sensor
1314
from .api.sm import Sm
1415
from .api.switch import Switch
1516
from .api.wireless import Wireless
@@ -113,7 +114,7 @@ def __init__(self,
113114
# Configure logging
114115
if not suppress_logging:
115116
self._logger = logging.getLogger(__name__)
116-
117+
117118
if not inherit_logging_config:
118119
self._logger.setLevel(logging.DEBUG)
119120

@@ -171,6 +172,7 @@ def __init__(self,
171172
self.camera = Camera(self._session)
172173
self.cellularGateway = CellularGateway(self._session)
173174
self.insight = Insight(self._session)
175+
self.sensor = Sensor(self._session)
174176
self.sm = Sm(self._session)
175177
self.switch = Switch(self._session)
176178
self.wireless = Wireless(self._session)

meraki/aio/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from .api.insight import AsyncInsight
1111
from .api.networks import AsyncNetworks
1212
from .api.organizations import AsyncOrganizations
13+
from .api.sensor import AsyncSensor
1314
from .api.sm import AsyncSm
1415
from .api.switch import AsyncSwitch
1516
from .api.wireless import AsyncWireless
@@ -171,6 +172,7 @@ def __init__(self,
171172
self.camera = AsyncCamera(self._session)
172173
self.cellularGateway = AsyncCellularGateway(self._session)
173174
self.insight = AsyncInsight(self._session)
175+
self.sensor = AsyncSensor(self._session)
174176
self.switch = AsyncSwitch(self._session)
175177
self.sm = AsyncSm(self._session)
176178
self.wireless = AsyncWireless(self._session)

meraki/api/batch/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from .camera import ActionBatchCamera
66
from .cellularGateway import ActionBatchCellularGateway
77
from .insight import ActionBatchInsight
8+
from .sensor import ActionBatchSensor
89
from .sm import ActionBatchSm
910
from .switch import ActionBatchSwitch
1011
from .wireless import ActionBatchWireless
@@ -21,6 +22,7 @@ def __init__(self):
2122
self.camera = ActionBatchCamera()
2223
self.cellularGateway = ActionBatchCellularGateway()
2324
self.insight = ActionBatchInsight()
25+
self.sensor = ActionBatchSensor()
2426
self.sm = ActionBatchSm()
2527
self.switch = ActionBatchSwitch()
2628
self.wireless = ActionBatchWireless()

0 commit comments

Comments
 (0)