Fix some stuff

This commit is contained in:
Otto Winter
2018-12-24 14:15:24 +01:00
parent da2821ab36
commit 5a7b66e207
12 changed files with 242 additions and 177 deletions
+3 -7
View File
@@ -307,13 +307,9 @@ class EsphomeyamlCore(object):
@property
def address(self): # type: () -> str
if CONF_MANUAL_IP in self.config[CONF_WIFI]:
return str(self.config[CONF_WIFI][CONF_MANUAL_IP][CONF_STATIC_IP])
elif CONF_HOSTNAME in self.config[CONF_WIFI]:
hostname = self.config[CONF_WIFI][CONF_HOSTNAME]
else:
hostname = self.name
return hostname + self.config[CONF_WIFI][CONF_DOMAIN]
from esphomeyaml.components import wifi
return wifi.get_upload_host(self.config[CONF_WIFI])
@property
def esphomelib_version(self): # type: () -> Dict[str, str]