mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix Temperature Sensor for AirOS 8.7.4+ (#13655)
* Fix Temperature Sensor for AirOS 8 * Update airos_airos8.json * Update airos.json * Add new skip_values feature to deal with Ubiquiti nonsense. Tweak test data to test the change fix not_regex Co-authored-by: Tony Murray <murraytony@gmail.com>
This commit is contained in:
@@ -180,7 +180,7 @@ function compare_var($a, $b, $comparison = '=')
|
||||
return ! Str::endsWith($a, $b);
|
||||
case 'regex':
|
||||
return (bool) preg_match($b, $a);
|
||||
case 'not regex':
|
||||
case 'not_regex':
|
||||
return ! ((bool) preg_match($b, $a));
|
||||
case 'in_array':
|
||||
return in_array($a, $b);
|
||||
|
Reference in New Issue
Block a user