[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
This commit is contained in:
2024-05-17 01:17:56 +01:00
parent 97d18a67c8
commit ea07932714

View File

@@ -89,7 +89,10 @@ class MediaScreen(Screen):
else: else:
cntr_st(lcd, lcd.width, self.d["media_artist"], lcd.height - 98, 2, 255, 255, 255) cntr_st(lcd, lcd.width, self.d["media_artist"], lcd.height - 98, 2, 255, 255, 255)
lcd.show() 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): def __updateMediaPositionBar(self, lcd, p: int, d: int):
if (d > 0): if (d > 0):