Skip to content

Commit 753c303

Browse files
committed
Restore static value to sensors_custom example
1 parent 0e373fe commit 753c303

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/sensors/sensors_custom.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ class ExampleCustomNumericData(CustomDataSource):
5656
def as_numeric(self) -> float:
5757
# Numeric value will be used for graph and radial progress bars
5858
# Here a Python function from another module can be called to get data
59-
# Example: return my_module.get_rgb_led_brightness() / return audio.system_volume() ...
60-
self.value = random.uniform(0, 100)
59+
# Example: self.value = my_module.get_rgb_led_brightness() / audio.system_volume() ...
60+
self.value = 75.845
6161

6262
# Store the value to the history list that will be used for line graph
6363
self.last_val.append(self.value)

0 commit comments

Comments
 (0)