Skip to content

Commit

Permalink
if statement reverted to include in a different PR
Browse files Browse the repository at this point in the history
  • Loading branch information
xNUTx committed Aug 8, 2024
1 parent c38633d commit f25c3d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/openhasp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ async def async_change_page(self, page):
if self._statusupdate:
num_pages = self._statusupdate[HASP_NUM_PAGES]

if page <= 0 or int(page) > int(num_pages):
if page <= 0 or page > num_pages:
_LOGGER.error(
"Can't change to %s, available pages are 1 to %s", page, num_pages
)
Expand Down

0 comments on commit f25c3d2

Please sign in to comment.