Sensors remove reliance on global variable (#16344)

* Sensors remove reliance on global variable

* Apply fixes from StyleCI

* Clear the instance instead of reset.
Remove $valid['sensors'] from docs

---------

Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
This commit is contained in:
Tony Murray
2024-09-03 21:04:34 -05:00
committed by GitHub
parent 4efad1ae69
commit f15f8fa63a
381 changed files with 991 additions and 932 deletions

View File

@@ -19,7 +19,7 @@ use Illuminate\Support\Str;
if (Str::startsWith($device['sysObjectID'], '.1.3.6.1.4.1.1248.4.1')) {
discover_sensor(
$valid['sensor'],
null,
'count',
$device,
'.1.3.6.1.4.1.1248.4.1.1.1.1.0',