correct some comments given reworking
This commit is contained in:
parent
346053d980
commit
613245fcca
1 changed files with 3 additions and 2 deletions
|
@ -184,14 +184,15 @@ class MiscDisplay(Static):
|
||||||
self.temp_stats = val_update
|
self.temp_stats = val_update
|
||||||
|
|
||||||
def watch_fan_stats(self, fan_stats: dict) -> None:
|
def watch_fan_stats(self, fan_stats: dict) -> None:
|
||||||
"""Called when the clocks attribute changes.
|
"""Called when the 'fan_stats' reactive attr changes.
|
||||||
|
|
||||||
- Updates label values
|
- Updates label values
|
||||||
- Casting inputs to string to avoid type problems w/ int/None"""
|
- Casting inputs to string to avoid type problems w/ int/None"""
|
||||||
self.query_one("#fan_rpm", Static).update(f"{fan_stats['fan_rpm']}")
|
self.query_one("#fan_rpm", Static).update(f"{fan_stats['fan_rpm']}")
|
||||||
self.query_one("#fan_rpm_target", Static).update(f"{fan_stats['fan_rpm_target']}")
|
self.query_one("#fan_rpm_target", Static).update(f"{fan_stats['fan_rpm_target']}")
|
||||||
|
|
||||||
def watch_temp_stats(self, temp_stats: dict) -> None:
|
def watch_temp_stats(self, temp_stats: dict) -> None:
|
||||||
"""Called when the clocks attribute changes, updates labels"""
|
"""Called when the temp_stats reactive attr changes, updates labels"""
|
||||||
for temp_node in temp_files:
|
for temp_node in temp_files:
|
||||||
# check first if the reactive object has been updated with keys
|
# check first if the reactive object has been updated with keys
|
||||||
if temp_node in temp_stats:
|
if temp_node in temp_stats:
|
||||||
|
|
Reference in a new issue