Skip to content

Commit

Permalink
Log message when loading custom widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
acockburn committed Aug 23, 2017
1 parent eb7a7ea commit 87064e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions appdaemon/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,8 @@ def _get_widgets(self):
if os.path.isdir(widget_dir):
widget_dirs = os.listdir(path=widget_dir)
for widget in widget_dirs:
if widget_dir == os.path.join(self.config_dir, "custom_widgets"):
ha.log(self.logger, "INFO", "Loading custom widget '{}'".format(widget))
if os.path.isdir(os.path.join(widget_dir, widget)):
jspath = os.path.join(widget_dir, widget, "{}.js".format(widget))
csspath = os.path.join(widget_dir, widget, "{}.css".format(widget))
Expand Down

0 comments on commit 87064e1

Please sign in to comment.