mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Fix opower for AEP utilities (#106010)
This commit is contained in:
parent
69fccec147
commit
09a0ace671
@ -93,7 +93,9 @@ class OpowerCoordinator(DataUpdateCoordinator[dict[str, Forecast]]):
|
|||||||
(
|
(
|
||||||
self.api.utility.subdomain(),
|
self.api.utility.subdomain(),
|
||||||
account.meter_type.name.lower(),
|
account.meter_type.name.lower(),
|
||||||
account.utility_account_id,
|
# Some utilities like AEP have "-" in their account id.
|
||||||
|
# Replace it with "_" to avoid "Invalid statistic_id"
|
||||||
|
account.utility_account_id.replace("-", "_"),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
cost_statistic_id = f"{DOMAIN}:{id_prefix}_energy_cost"
|
cost_statistic_id = f"{DOMAIN}:{id_prefix}_energy_cost"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user