Skip to content

Commit

Permalink
Fix UnboundLocalError caused by new scenes code.
Browse files Browse the repository at this point in the history
  • Loading branch information
elahd authored Oct 27, 2023
1 parent bde552b commit 6e53ece
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyalarmdotcomajax/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
)
from pyalarmdotcomajax.websockets.client import WebSocketClient, WebSocketState

__version__ = "0.5.9"
__version__ = "0.5.9-hotfix.1"

log = logging.getLogger(__name__)

Expand Down Expand Up @@ -236,6 +236,7 @@ async def async_update(self) -> None:
log.debug("Calling update on Alarm.com")

has_image_sensors: bool = False
has_scenes: bool = False

if not self._active_system_id:
self._active_system_id = await self._async_get_active_system()
Expand Down

0 comments on commit 6e53ece

Please sign in to comment.