Add ESP32 Ethernet Support (#301)

* Fix

* Build flags

* Fix
This commit is contained in:
Otto Winter
2019-01-05 20:47:33 +01:00
committed by GitHub
parent 3f4bba57f4
commit e72ef9e061
6 changed files with 98 additions and 10 deletions
+7 -1
View File
@@ -315,7 +315,13 @@ class EsphomeyamlCore(object):
def address(self): # type: () -> str
from esphomeyaml.components import wifi
return wifi.get_upload_host(self.config[CONF_WIFI])
if 'wifi' in self.config:
return wifi.get_upload_host(self.config[CONF_WIFI])
if 'ethernet' in self.config:
return wifi.get_upload_host(self.config['ethernet'])
return None
@property
def esphomelib_version(self): # type: () -> Dict[str, str]