Skip to content

discover_devices edge case bug #4

@Phuket2

Description

@Phuket2

I have been using nanoleafapi with 3 canvas sets. Today I got a Nanoleaf Rhythm edition set also. So I turn it on and could not pair it in the nano app or Homekit. Out of interest I wanted to see if nanoleafpapi would see it. So the discovery.discover_devices() started to fail.

Traceback (most recent call last):
, line 4, in
nanoleaf_dict = discovery.discover_devices()
, line 36, in discover_devices
nanoleaf_dict[name] = ip
UnboundLocalError: local variable 'ip' referenced before assignment

So I did a hard reset on the light panels and before adding them to the apps I tested discovery.discover_devices() and it was working fie. Did not see the light panels which is fine but did not error out.
I know it's a out there edge case, but thought you would like to know.

Python 3.8.2
MacOS 10.15.4

Thanks for doing the work on nanoleafapi, its great to have and a lot of fun and works very well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions