Skip to content

Commit 4275a10

Browse files
committed
fix warning about simple API not having is_api_protected method defined
1 parent 101d08a commit 4275a10

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

octoprint_external_temp_reader/ExternalTempReaderPlugin.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,10 @@ def _add_to_history(self, temperature):
224224

225225
self._logger.debug(f"History size: {len(self.temperature_history)} points")
226226

227+
def is_api_protected(self):
228+
"""Explicitly declare that this API does not require authentication."""
229+
return False
230+
227231
def on_api_get(self, request):
228232
"""Handle API GET requests."""
229233
# Send full temperature history when requested

0 commit comments

Comments
 (0)