Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 4 miniprobe/sensors/cputemp.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_kind():
return "mpcputemp"

@staticmethod
def get_sensordef():
def get_sensordef(testing=False):
"""
Definition of the sensor and data to be shown in the PRTG WebGUI
"""
Expand Down Expand Up @@ -69,7 +69,7 @@ def get_sensordef():
}
]
}
if not temp:
if not temp and not testing:
sensordefinition = ""
return sensordefinition

Expand Down
4 changes: 2 additions & 2 deletions 4 miniprobe/sensors/ds18b20.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def get_kind():
return "mpds18b20"

@staticmethod
def get_sensordef():
def get_sensordef(testing=False):
"""
Definition of the sensor and data to be shown in the PRTG WebGUI
"""
Expand Down Expand Up @@ -75,7 +75,7 @@ def get_sensordef():
}
]
}
if not dev:
if not dev and not testing:
sensordefinition = ""
return sensordefinition

Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.