Skip to content

Function open_door needs to have deviceId and accessIds globally declared #2

Description

@mic-hall

Otherwise I get error:

Traceback (most recent call last):
File "/home/pi/fermax-open-door-script/Fermax-Blue-Intercom.py", line 644, in
open_door()
File "/home/pi/fermax-open-door-script/Fermax-Blue-Intercom.py", line 553, in open_door
f'Success, using provided deviceId {deviceId}, calling directed opendoor...')
^^^^^^^^
UnboundLocalError: cannot access local variable 'deviceId' where it is not associated with a value

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions