Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: home-assistant-libs/forecast_solar
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 76230aacfaa110f93f553cd6a733ccc2390fed32
Choose a base ref
..
head repository: home-assistant-libs/forecast_solar
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2f5fa5bb09ddc648c3a279eff879e432fdf40d35
Choose a head ref
Showing with 2 additions and 1 deletion.
  1. +2 −1 forecast_solar/exceptions.py
3 changes: 2 additions & 1 deletion forecast_solar/exceptions.py
Original file line number Diff line number Diff line change
@@ -26,7 +26,8 @@ def __init__(self, data: dict) -> None:
https://doc.forecast.solar/doku.php?id=api#invalid_request
"""
code = data.get("code") # seems that code is missing in response in some endpoints (see /info)
# seems that code is missing in response in some endpoints (i.e /info)
code = data.get("code")
super().__init__(f'{data["text"]} (error {code})')
self.code = code