Use names instead of statistic IDs in the Opower repair issue (#144018)

* Use names instead of statistic IDs in the Opower repair issue

* target_ids
This commit is contained in:
tronikos 2025-05-05 05:36:58 -07:00 committed by GitHub
parent c14ddedfae
commit 0043b18135
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -443,7 +443,7 @@ class OpowerCoordinator(DataUpdateCoordinator[dict[str, Forecast]]):
"energy_settings": "/config/energy",
"target_ids": "\n".join(
{
v
str(metadata_map[v]["name"])
for k, v in migration_map.items()
if k in need_migration_source_ids
}

View File

@ -35,7 +35,7 @@
"issues": {
"return_to_grid_migration": {
"title": "Return to grid statistics for account: {utility_account_id}",
"description": "We found negative values in your existing consumption statistics, likely because you have solar. We split those in separate return statistics for a better experience in the Energy dashboard.\n\nPlease visit the [Energy configuration page]({energy_settings}) to add the following statistics in the **Return to grid** section:\n\n{target_ids}"
"description": "We found negative values in your existing consumption statistics, likely because you have solar. We split those in separate return statistics for a better experience in the Energy dashboard.\n\nPlease visit the [Energy configuration page]({energy_settings}) to add the following statistics in the **Return to grid** section:\n\n{target_ids}\n\nOnce you have added them, ignore this issue."
}
}
}