From 607eec0abd2223d6e291e4ce615a752ac158a105 Mon Sep 17 00:00:00 2001
From: Otto Winter
Date: Fri, 23 Nov 2018 23:19:54 +0100
Subject: [PATCH] Fix
---
esphomeyaml/dashboard/dashboard.py | 2 +-
esphomeyaml/dashboard/templates/index.html | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/esphomeyaml/dashboard/dashboard.py b/esphomeyaml/dashboard/dashboard.py
index f3a0a9a622..e515064720 100644
--- a/esphomeyaml/dashboard/dashboard.py
+++ b/esphomeyaml/dashboard/dashboard.py
@@ -456,7 +456,7 @@ def _get_mqtt_config_impl():
mqtt_config = req.json()['data']
return {
'ssl': mqtt_config['ssl'],
- 'host': mqtt_config['host'] + ':' + mqtt_config['port'],
+ 'host': mqtt_config['host'] + ':' + str(mqtt_config['port']),
'username': mqtt_config.get('username', ''),
'password': mqtt_config.get('password', '')
}
diff --git a/esphomeyaml/dashboard/templates/index.html b/esphomeyaml/dashboard/templates/index.html
index 8db7e2faad..31ad8037f5 100644
--- a/esphomeyaml/dashboard/templates/index.html
+++ b/esphomeyaml/dashboard/templates/index.html
@@ -464,7 +464,7 @@
{% else %}
- It looks like you've already set up MQTT, the values below are taken from your "{{ escape(mqtt_config['addon']) }}" add-on.
+ It looks like you've already set up MQTT, the values below are taken from your HassIO MQTT add-on.
{% end %}