Fix: Allow empty season pass text

This commit is contained in:
LmeSzinc 2024-08-01 12:46:02 +08:00
parent 7f96e98e50
commit 8f86169b41

View File

@ -167,6 +167,9 @@ class LoginAndroidCloud(ModuleBase):
season_pass = round(season_pass / 24, 2)
elif '分钟' in text:
season_pass = round(season_pass / 24 / 60, 3)
elif text == '':
# Save as empty string so dashboard will show NoData
season_pass = ''
else:
logger.error(f'Unexpected season pass text: {text}')