From ea07932714fcd899d568e98f04a4aafd88bb1ac6 Mon Sep 17 00:00:00 2001 From: Matthew Grove Date: Fri, 17 May 2024 01:17:56 +0100 Subject: [PATCH] [FIX] Song changes should be recognised when scrolling text is enabled Data was not being pulled from HA when re-drawing the whole screen for scrolling text --- screens.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/screens.py b/screens.py index 4faf7fb..1ad3613 100644 --- a/screens.py +++ b/screens.py @@ -89,7 +89,10 @@ class MediaScreen(Screen): else: cntr_st(lcd, lcd.width, self.d["media_artist"], lcd.height - 98, 2, 255, 255, 255) lcd.show() - return mt_l or ma_l + if (mt_l or ma_l): + self.d = {} + return True + return False def __updateMediaPositionBar(self, lcd, p: int, d: int): if (d > 0):