crismc / rpi_i2c_oled

Python library to enable 128x32 pixel OLED for Raspberry Pi (both 32 and 64bit).
MIT License
13 stars 10 forks source link

get first interface with ipv4 or return 0.0.0.0 if none #8

Closed si458 closed 8 months ago

si458 commented 8 months ago

Signed-off-by: Simon Smith simonsmith5521@gmail.com

Description

rpi4 has built in wifi, even tho its not used, the first interface seems to be the wifi, so no ipv4 address is defined

Related Issue

This PR fixes or closes issue: fixes https://github.com/crismc/homeassistant_addons/issues/8

Motivation and Context

How Has This Been Tested

Types of changes

Checklist

crismc commented 8 months ago

Thanks for making the changes!