Skip to content

Commit a0a8232

Browse files
authored
Merge pull request #2598 from lordblobo/master
SoC Module evcc: fixed API call
2 parents 83e9dfd + cab462a commit a0a8232

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

packages/modules/vehicles/evcc/api.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ def fetch_soc(
6969
stub = vehicle_pb2_grpc.VehicleStub(channel)
7070

7171
if not evcc_config.vehicle_id: # create and fetch vehicle id if not included in config
72-
create_and_save_vehicle_id(stub, evcc_config, vehicle)
73-
# vehicle_to_fetch = create_vehicle(evcc_config, stub)
74-
# log.debug("Vehicle client received: " + str(vehicle_to_fetch))
72+
vehicle_to_fetch = create_and_save_vehicle_id(stub, evcc_config, vehicle)
73+
# vehicle_to_fetch = create_vehicle(evcc_config, stub)
74+
# log.debug("Vehicle client received: " + str(vehicle_to_fetch))
7575

7676
# saving vehicle id in config
77-
# topic = "openWB/set/vehicle/" + str(vehicle) + "/soc_module/config"
78-
# write_vehicle_id_mqtt(topic, vehicle_to_fetch, evcc_config)
77+
# topic = "openWB/set/vehicle/" + str(vehicle) + "/soc_module/config"
78+
# write_vehicle_id_mqtt(topic, vehicle_to_fetch, evcc_config)
7979
else:
8080
log.debug("Vehicle id found in config: " + str(evcc_config.vehicle_id))
8181
vehicle_to_fetch = evcc_config.vehicle_id

packages/modules/vehicles/evcc/vehicle_pb2.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ class NewRequest(_message.Message):
1919
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
2020
TOKEN_FIELD_NUMBER: _ClassVar[int]
2121
TYPE_FIELD_NUMBER: _ClassVar[int]
22+
TEMPLATE_FIELD_NUMBER: _ClassVar[int]
2223
CONFIG_FIELD_NUMBER: _ClassVar[int]
2324
token: str
2425
type: str
2526
config: _containers.ScalarMap[str, str]
26-
def __init__(self, token: _Optional[str] = ..., type: _Optional[str] = ..., config: _Optional[_Mapping[str, str]] = ...) -> None: ...
27+
def __init__(self, token: _Optional[str] = ..., type: _Optional[str] = ..., template: _Optional[str] = ..., config: _Optional[_Mapping[str, str]] = ...) -> None: ...
2728

2829
class NewReply(_message.Message):
2930
__slots__ = ("vehicle_id",)

0 commit comments

Comments
 (0)