tui: remove extraneous temp var
This commit is contained in:
parent
811fcd4749
commit
751bc8ce04
1 changed files with 1 additions and 2 deletions
|
@ -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}:',),
|
||||
|
|
Reference in a new issue