Overboard / discoverhue

Discovery of hue bridges per the Philips design guide.
MIT License
10 stars 1 forks source link

Change behavior for empty dict #8

Open Overboard opened 6 years ago

Overboard commented 6 years ago

https://github.com/Overboard/discoverhue/blob/81948ac8a37ec3d69b5608b3822b42a9bd4e0a7e/tests/test_discoverhue.py#L488

Currently, an empty dict for input does not run discovery and simply returns {}. Since a typical use case might would involve feeding it a dict from saved config, then it's possible a new config would yield an empty dict. In that scenario, the desired behavior would be to run discovery.

This would also then mirror behavior of empty lists, etc.