diff --git a/iso15118/evcc/evcc_settings.py b/iso15118/evcc/evcc_settings.py index 4ffef380..15f3d15c 100644 --- a/iso15118/evcc/evcc_settings.py +++ b/iso15118/evcc/evcc_settings.py @@ -89,12 +89,12 @@ def load_envs(self, env_path: Optional[str] = None) -> None: "MAX_SUPPORTING_POINTS", default=1024, validate=Range(min=0, max=1024) ) + env.seal() # raise all errors at once, if any logger.info("EVCC settings:") for key, value in shared_settings.items(): logger.info(f"{key:30}: {value}") for key, value in env.dump().items(): logger.info(f"{key:30}: {value}") - env.seal() # raise all errors at once, if any RESUME_SELECTED_AUTH_OPTION = None diff --git a/iso15118/secc/secc_settings.py b/iso15118/secc/secc_settings.py index d0d4ac74..f55a9487 100644 --- a/iso15118/secc/secc_settings.py +++ b/iso15118/secc/secc_settings.py @@ -113,12 +113,12 @@ def load_envs(self, env_path: Optional[str] = None) -> None: # EV can still use value-added services while not consuming any power. self.standby_allowed = env.bool("STANDBY_ALLOWED", default=False) + env.seal() # raise all errors at once, if any logger.info("SECC settings:") for key, value in shared_settings.items(): logger.info(f"{key:30}: {value}") for key, value in env.dump().items(): logger.info(f"{key:30}: {value}") - env.seal() # raise all errors at once, if any def load_requested_protocols(self, read_protocols: Optional[List[str]]): protocols = format_list(read_protocols) diff --git a/iso15118/shared/settings.py b/iso15118/shared/settings.py index e0b88f19..24b2d1ad 100644 --- a/iso15118/shared/settings.py +++ b/iso15118/shared/settings.py @@ -24,5 +24,5 @@ ENABLE_TLS_1_3 = env.bool("ENABLE_TLS_1_3", default=False) -shared_settings = env.dump() env.seal() # raise all errors at once, if any +shared_settings = env.dump()