From 6942d6c8a89dd53edbac9357158cba673604b77b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 4 Oct 2024 18:57:39 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- hyundai_kia_connect_api/ApiImplType1.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hyundai_kia_connect_api/ApiImplType1.py b/hyundai_kia_connect_api/ApiImplType1.py index 107d41d6..e89ad900 100644 --- a/hyundai_kia_connect_api/ApiImplType1.py +++ b/hyundai_kia_connect_api/ApiImplType1.py @@ -54,12 +54,12 @@ def _update_vehicle_properties_ccs2(self, vehicle: Vehicle, state: dict) -> None get_child_value(state, "Date"), dt.timezone.utc ) elif vehicle.last_updated_at < parse_datetime( - get_child_value(state, "Date"), dt.timezone.utc - ): - vehicle.last_updated_at = parse_datetime( + get_child_value(state, "Date"), dt.timezone.utc + ): + vehicle.last_updated_at = parse_datetime( get_child_value(state, "Date"), dt.timezone.utc ) - + else: vehicle.last_updated_at = dt.datetime.now(self.data_timezone)