Fix: CloudRemainSeasonPass should be int

This commit is contained in:
LmeSzinc 2024-08-02 01:21:56 +08:00
parent cec09f9926
commit 4e9a2bef03

View File

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