mirror of
https://github.com/flobz/psa_car_controller.git
synced 2026-08-23 18:06:15 +00:00
fix __get_charge_hour
This commit is contained in:
@@ -271,7 +271,7 @@ class RemoteClient:
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
def __get_charge_hour(self, vin):
|
def __get_charge_hour(self, vin):
|
||||||
hour_str = self.vehicles_list[vin].status.get_energy('Electric').charging.next_delayed_time
|
hour_str = self.vehicles_list.get_car_by_vin(vin).status.get_energy('Electric').charging.next_delayed_time
|
||||||
try:
|
try:
|
||||||
return parse_hour(hour_str)[:2]
|
return parse_hour(hour_str)[:2]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
|
|||||||
Reference in New Issue
Block a user