197 files

This commit is contained in:
Home Assistant Version Control
2026-08-21 18:53:37 +00:00
parent 89d9f5e49b
commit 383e9ed04e
197 changed files with 4386 additions and 1837 deletions
@@ -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: