Skip to content

Commit

Permalink
Merge pull request #140 from xNUTx/reloadfix
Browse files Browse the repository at this point in the history
Dynamic reloading broken on recently added displays.
  • Loading branch information
fvanroie committed Aug 19, 2024
2 parents 133f5ea + e3af9a0 commit 847825d
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 @@ -554,7 +554,7 @@ async def async_change_page(self, page):
if self._statusupdate:
num_pages = self._statusupdate[HASP_NUM_PAGES]

if page <= 0 or page > num_pages:
if isinstance(page, int) and (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 847825d

Please sign in to comment.