Skip to content

Commit

Permalink
feat: add USA Kia temperature range (Hyundai-Kia-Connect#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
dahlb authored Nov 9, 2021
1 parent a8e3b11 commit cb2a6fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions custom_components/kia_uvo/KiaUvoApiImpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion custom_components/kia_uvo/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cb2a6fc

Please sign in to comment.