Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Hmmbob <[email protected]>
  • Loading branch information
golles and hmmbob authored Apr 19, 2024
1 parent 3540e1e commit b5777a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/knmi/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ async def async_get_data(self) -> dict:
"API key daily limit exceeded, try again tomorrow"
)

# The API has an ongoing issue due ot invalid JSON repsponse.
# The API has an ongoing issue due to invalid JSON response.
# Where a null value of a number field is set to _ (without quotes).
# Here we fix tje JSON by setting the value to null.
# Here we fix the JSON by setting the value to null.
# More info: https://github.com/golles/ha-knmi/issues/130
if '": _,' in self.response_text:
_LOGGER.debug("Detected invalid JSON, attempting to fix that...")
Expand Down

0 comments on commit b5777a1

Please sign in to comment.