Archived
1
1
Fork 0

tui: remove extraneous temp var

This commit is contained in:
Josh Lay 2023-04-30 17:44:16 -05:00
parent 811fcd4749
commit 751bc8ce04
Signed by: jlay
GPG key ID: B265E45CACAD108A

View file

@ -167,13 +167,12 @@ class MiscDisplay(Static):
super().__init__(*args, **kwargs)
self.timer_misc = None
self.card = card
self.initial_stats = get_temp_stats(self.card)
self.temp_stats = get_temp_stats(self.card)
def compose(self) -> ComposeResult:
yield Horizontal(Label("[underline]Temperatures"),
Label("", classes="statvalue"))
for temp_node in self.initial_stats:
for temp_node in self.temp_stats:
# capitalize the first letter for display
caption = temp_node[0].upper() + temp_node[1:]
yield Horizontal(Label(f' {caption}:',),