Skip to content

Commit

Permalink
fix: add logger to debug rest api #17
Browse files Browse the repository at this point in the history
  • Loading branch information
chilikla authored Nov 26, 2024
1 parent e40daac commit 624ed63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/yerushamayim/data_coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ def _extract_data(self) -> YerushamayimData:
_LOGGER.debug("Raw REST API data: %s", self.rest_api.data)

rest_data = {}
for row in BeautifulSoup.find_all('tr'):
content = BeautifulSoup(self.rest_api.data, 'html.parser')
for row in content.find_all('tr'):
_LOGGER.debug("Processing row: %s", row)
columns = row.find_all('td')
if len(columns) >= 2:
Expand Down

0 comments on commit 624ed63

Please sign in to comment.