Skip to content

Commit

Permalink
Fix current price
Browse files Browse the repository at this point in the history
  • Loading branch information
JRascagneres committed Jun 2, 2024
1 parent cfd7a71 commit 8358647
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,8 @@ def get_half_hourly_solar_forecast(
+ "&to="
+ day_after_tomorrow.strftime("%Y-%m-%d")
+ "&processType=all"
+ "&settlementPeriodFrom=1"
+ "&settlementPeriodTo=50"
+ "&format=json"
)

Expand Down Expand Up @@ -427,7 +429,8 @@ def get_current_price(api_key: str, today_utc: str, yesterday_utc: str) -> float
+ yesterday_utc
+ "&to="
+ today_utc
+ "&dataProviders=APXMIDP&format=json"
+ "&settlementPeriodFrom=1"
+ "&settlementPeriodTo=50&dataProviders=APXMIDP&format=json"
)

response = requests.get(url, timeout=10)
Expand Down
2 changes: 1 addition & 1 deletion custom_components/national_grid/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
"dependencies": [],
"iot_class": "cloud_polling",
"requirements": [],
"version": "0.0.43",
"version": "0.0.44",
"config_flow": true
}

0 comments on commit 8358647

Please sign in to comment.