mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 09:17:53 +00:00
Update utility_account_id in Opower to be lowercase in statistic id (#124837)
Update utility_account_id to be lowercase in statistic id
This commit is contained in:
parent
3b6128d590
commit
1101e7ef64
@ -98,7 +98,7 @@ class OpowerCoordinator(DataUpdateCoordinator[dict[str, Forecast]]):
|
||||
account.meter_type.name.lower(),
|
||||
# Some utilities like AEP have "-" in their account id.
|
||||
# Replace it with "_" to avoid "Invalid statistic_id"
|
||||
account.utility_account_id.replace("-", "_"),
|
||||
account.utility_account_id.replace("-", "_").lower(),
|
||||
)
|
||||
)
|
||||
cost_statistic_id = f"{DOMAIN}:{id_prefix}_energy_cost"
|
||||
|
Loading…
x
Reference in New Issue
Block a user