197 files
This commit is contained in:
@@ -28,7 +28,13 @@ async def get_power_profile(
|
||||
model_info: ModelInfo | None = None,
|
||||
log_errors: bool = True,
|
||||
process_variables: bool = True,
|
||||
model_resolved: bool = False,
|
||||
) -> PowerProfile | None:
|
||||
"""Build the power profile for a given configuration or model.
|
||||
|
||||
Pass `model_resolved` when `model_info` already comes out of `ProfileLibrary.find_models`,
|
||||
to skip resolving it against the library again.
|
||||
"""
|
||||
manufacturer = config.get(CONF_MANUFACTURER)
|
||||
model = config.get(CONF_MODEL)
|
||||
model_id = None
|
||||
@@ -60,6 +66,7 @@ async def get_power_profile(
|
||||
custom_model_directory,
|
||||
variables,
|
||||
process_variables,
|
||||
model_resolved,
|
||||
)
|
||||
except LibraryError as err:
|
||||
if log_errors:
|
||||
|
||||
Reference in New Issue
Block a user