2019 Hyundai Kona EV calling wrong start_climate method
See original GitHub issueI just updated to v1.26 after working with @cdnninja to get climate working in Hyundai EVs and it working after taking the update. I did some poking around in the code and was able to determine that it was calling start_climate
instead of start_climate_ev
as a result of this check on line 195 of Vehicle.py not evaluating to true:
if self.engine_type == VEHICLE_ENGINE_TYPE.EV and self.region == REGION_CANADA:
it seems that self.region
does not equal REGION_CANADA
(“Canada”), and from what I could tell it isn’t even a string. Printing it out with _LOGGER.debug
errored out saying it was an int, and when cast to a string it evaluated to ‘2’ - possibly related to REGION_CANADA
’s position in the REGIONS
dictionary? I solved it for myself by commenting out part of the condition that checks the region, but I couldn’t come up with a proper fix for everyone else.
Issue Analytics
- State:
- Created 2 years ago
- Comments:13
@cdnninja - tested #216, start_climate_ev and stop_climate worked as expected. Thanks for the fix!
I am going to close this again as it looks like the OP’s issue is solved.