Skip to content

Commit

Permalink
fix #24
Browse files Browse the repository at this point in the history
  • Loading branch information
myTselection committed Feb 9, 2024
1 parent ff10220 commit e0eb9ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/bibliotheek_be/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"iot_class": "cloud_polling",
"issue_tracker": "https://github.com/myTselection/bibliotheek_be/issues",
"requirements": ["bs4", "html5lib"],
"version": "1.6.8"
"version": "1.6.9"
}
4 changes: 2 additions & 2 deletions custom_components/bibliotheek_be/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,8 +320,8 @@ async def async_update(self):
_LOGGER.debug(f"library_name_loop {library_name_loop} {self._libraryName}")
self._num_total_loans += 1
curr_loan_type = loan_item.get('loan_type')
self._loantype.setdefault(curr_loan_type, 0)
self._loantype[curr_loan_type] += 1
self._loantypes.setdefault(curr_loan_type, 0)
self._loantypes[curr_loan_type] += 1
self._loandetails.append(loan_item)
if (self._days_left is None) or (self._days_left > loan_item.get('days_remaining')):
_LOGGER.debug(f"library_name_loop less days {library_name_loop} {loan_item}")
Expand Down

0 comments on commit e0eb9ec

Please sign in to comment.