From 4b38b2363f76d73d94018d61c69de7fe8ba04c23 Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Wed, 7 Jun 2023 20:40:10 -0700 Subject: [PATCH] fix reassigning different types --- selfdrive/car/hyundai/values.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/car/hyundai/values.py b/selfdrive/car/hyundai/values.py index fadfab8fcf..3ed9aa79da 100644 --- a/selfdrive/car/hyundai/values.py +++ b/selfdrive/car/hyundai/values.py @@ -362,8 +362,8 @@ def get_platform_codes(fw_versions: List[bytes]) -> Set[bytes]: final_codes.add(code) continue - dates = {datetime.strptime(date.decode()[:4], '%y%m') for date in dates} - for date in rrule.rrule(rrule.MONTHLY, dtstart=min(dates), until=max(dates)): + parsed = {datetime.strptime(date.decode()[:4], '%y%m') for date in dates} + for date in rrule.rrule(rrule.MONTHLY, dtstart=min(parsed), until=max(parsed)): final_codes.add(code + b'-' + date.strftime('%y%m').encode()) return final_codes