Skip to content

Commit

Permalink
Update mijnafvalwijzer.py
Browse files Browse the repository at this point in the history
  • Loading branch information
xirixiz authored Feb 23, 2019
1 parent 642c958 commit 139c8aa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions custom_components/sensor/mijnafvalwijzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
23-02-2019 - Back to JSON release instead of scraper
23-02-2019 - Move scraper url, cleanup, and some minor doc fixes
24-02-2019 - Scraper debug log url fix
"""

VERSION = '3.0.2'
VERSION = '3.0.3'

import logging
from datetime import date, datetime, timedelta
Expand Down Expand Up @@ -210,7 +211,7 @@ def days(start, end):
huisnummer = self._config.get(CONST_HUISNUMMER)
toevoeging = self._config.get(CONST_TOEVOEGING)
scraper_url = (f"https://www.mijnafvalwijzer.nl/nl/{postcode}/{huisnummer}/{toevoeging}")
logger.debug(f"Scraper request url: {url}")
logger.debug(f"Scraper request url: {scraper_url}")
scraper_response = requests.get(scraper_url)

if scraper_response.status_code != requests.codes.ok:
Expand Down

0 comments on commit 139c8aa

Please sign in to comment.