Change raspberry_pi_sensors state (#12390)

* Change raspberry_pi_sensors state

I think it is great that the codecs of a Raspberry are queried, but a non-existent codec license is not a critical sensor value. What do you think?

* Update linux_raspberrypi.json

* Update linux_raspberrypi.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
This commit is contained in:
Kevin Zink
2021-01-09 04:16:37 +01:00
committed by GitHub
parent 53bc78c9d9
commit e26fb4669a
2 changed files with 3 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ if (! empty($pre_cache['raspberry_pi_sensors'])) {
if (stripos($value, 'abled') !== false) {
$states = [
['value' => 2, 'generic' => 0, 'graph' => 1, 'descr' => 'enabled'],
['value' => 3, 'generic' => 2, 'graph' => 1, 'descr' => 'disabled'],
['value' => 3, 'generic' => 3, 'graph' => 1, 'descr' => 'disabled'],
];
create_state_index($state_name, $states);

View File

@@ -328,7 +328,7 @@
"state_descr": "disabled",
"state_draw_graph": 1,
"state_value": 3,
"state_generic_value": 2
"state_generic_value": 3
}
]
},
@@ -660,7 +660,7 @@
"state_descr": "disabled",
"state_draw_graph": 1,
"state_value": 3,
"state_generic_value": 2
"state_generic_value": 3
}
]
}