From 552f78fc5cac20819e1360358d151d681f31abc2 Mon Sep 17 00:00:00 2001
From: Paulus Schoutsen <Paulus@PaulusSchoutsen.nl>
Date: Wed, 22 Oct 2014 19:52:16 -0700
Subject: [PATCH] Added refresh button

---
 .../http/www_static/polymer/home-assistant-main.html         | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/homeassistant/components/http/www_static/polymer/home-assistant-main.html b/homeassistant/components/http/www_static/polymer/home-assistant-main.html
index 1f068b9eb93..ef4243942e7 100644
--- a/homeassistant/components/http/www_static/polymer/home-assistant-main.html
+++ b/homeassistant/components/http/www_static/polymer/home-assistant-main.html
@@ -43,6 +43,7 @@
         <div flex>
           Home Assistant
         </div>
+        <core-icon-button icon="refresh" on-click="{{handleRefreshClick}}"></core-icon-button>
         <core-icon-button icon="developer-mode-tv" on-click="{{handleEventClick}}"></core-icon-button>
         <core-icon-button icon="settings-remote" on-click="{{handleServiceClick}}"></core-icon-button>
       </core-toolbar>
@@ -62,6 +63,10 @@
       this.api = this.$.api;
     },
 
+    handleRefreshClick: function() {
+      this.api.fetchStates();
+    },
+
     handleEventClick: function() {
       this.api.showFireEventDialog();
     },
-- 
GitLab