Skip to content

Commit

Permalink
fix: geocode error (#650)
Browse files Browse the repository at this point in the history
Hyundai-Kia-Connect/kia_uvo#946

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
cdnninja and pre-commit-ci[bot] authored Oct 12, 2024
1 parent 510b642 commit d3baecc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions hyundai_kia_connect_api/Vehicle.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,12 @@ def geocode(self):

@geocode.setter
def geocode(self, value):
self._geocode_name = value[0]
self._geocode_address = value[1]
if value:
self._geocode_name = value[0]
self._geocode_address = value[1]
else:
self._geocode_name = None
self._geocode_address = None

@property
def total_driving_range(self):
Expand Down

0 comments on commit d3baecc

Please sign in to comment.