From cb2a6fcb69cba1c04b5c3db126eef00cf7b07a28 Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Tue, 9 Nov 2021 13:03:42 -0500 Subject: [PATCH] feat: add USA Kia temperature range (#114) --- custom_components/kia_uvo/KiaUvoApiImpl.py | 2 ++ custom_components/kia_uvo/const.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/custom_components/kia_uvo/KiaUvoApiImpl.py b/custom_components/kia_uvo/KiaUvoApiImpl.py index 1d0a4976..90b02436 100644 --- a/custom_components/kia_uvo/KiaUvoApiImpl.py +++ b/custom_components/kia_uvo/KiaUvoApiImpl.py @@ -88,3 +88,5 @@ def get_temperature_range_by_region(self): return CA_TEMP_RANGE elif REGIONS[self.region] == REGION_EUROPE: return EU_TEMP_RANGE + elif REGIONS[self.region] == REGION_USA: + return USA_TEMP_RANGE diff --git a/custom_components/kia_uvo/const.py b/custom_components/kia_uvo/const.py index 4dd799a4..c2872fa8 100644 --- a/custom_components/kia_uvo/const.py +++ b/custom_components/kia_uvo/const.py @@ -71,7 +71,7 @@ EU_TEMP_RANGE = [14, 14.5, 15, 15.5, 16, 16.5, 17, 17.5, 18, 18.5, 19, 19.5, 20, 20.5, 21, 21.5, 22, 22.5, 23, 23.5, 24, 24.5, 25, 25.5, 26, 26.5, 27, 27.5, 28, 28.5, 29, 29.5, 30] CA_TEMP_RANGE = [16, 16.5, 17, 17.5, 18, 18.5, 19, 19.5, 20, 20.5, 21, 21.5, 22, 22.5, 23, 23.5, 24, 24.5, 25, 25.5, 26, 26.5, 27, 27.5, 28, 28.5, 29, 29.5, 30, 30.5, 31, 31.5, 32] - +USA_TEMP_RANGE = range(62, 82) class VEHICLE_ENGINE_TYPE(Enum): EV = 1