Skip to content

Fix get_ip_address portability by using netifaces library

Val Packett requested to merge valpackett/python-yeelight:netif into master

Using the Linux value of SIOCGIFADDR would only work on Linux. Let's use a proper library for this. Fixes yeelight.discover_bulbs(interface='...') on FreeBSD and other OSes.

(btw: this library was already installed in my homeassistant venv..)

Merge request reports