We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e373fe commit 753c303Copy full SHA for 753c303
library/sensors/sensors_custom.py
@@ -56,8 +56,8 @@ class ExampleCustomNumericData(CustomDataSource):
56
def as_numeric(self) -> float:
57
# Numeric value will be used for graph and radial progress bars
58
# 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)
+ # Example: self.value = my_module.get_rgb_led_brightness() / audio.system_volume() ...
+ self.value = 75.845
61
62
# Store the value to the history list that will be used for line graph
63
self.last_val.append(self.value)
0 commit comments