Skip to content

Commit f25c3d2

Browse files
committed
if statement reverted to include in a different PR
1 parent c38633d commit f25c3d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/openhasp/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ async def async_change_page(self, page):
556556
if self._statusupdate:
557557
num_pages = self._statusupdate[HASP_NUM_PAGES]
558558

559-
if page <= 0 or int(page) > int(num_pages):
559+
if page <= 0 or page > num_pages:
560560
_LOGGER.error(
561561
"Can't change to %s, available pages are 1 to %s", page, num_pages
562562
)

0 commit comments

Comments
 (0)