Skip to content

Commit

Permalink
Some bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dwain committed Feb 2, 2020
1 parent 813c425 commit 7505009
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 8 deletions.
2 changes: 1 addition & 1 deletion dwains-theme/configs-samples/cameras.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cameras:
#cameras:
# - entity: camera.driveway_camera
2 changes: 1 addition & 1 deletion dwains-theme/configs-samples/more_addons.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
more_addons:
#more_addons:
# - name: Statistics
# icon: far:chart-area
# path: 'user-package-sample/views/addons/statistics.yaml'
2 changes: 1 addition & 1 deletion dwains-theme/configs-samples/rooms.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
rooms:
#rooms:
# - name: Hallway
# icon: fas:key
# light: light.hallway
Expand Down
2 changes: 1 addition & 1 deletion dwains-theme/configs-samples/scenes.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
scenes:
#scenes:
# - entity: scene.watching_tv
# icon: fas:couch
# icon_color: '#ffffff'
Expand Down
1 change: 1 addition & 0 deletions dwains-theme/translations/en.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
en:
welcome: Welcome
#translations here
#coming soon
1 change: 1 addition & 0 deletions dwains-theme/translations/nl.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
nl:
welcome: Welkom
#vertalingen hier
#coming soon
10 changes: 9 additions & 1 deletion dwains-theme/views/main/01.homepage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@
]]]
{% endif %}
{% endif %}
{% if _d_t_config.persons %}
{% for person in _d_t_config.persons %}
- type: custom:button-card
template: header_person
Expand All @@ -149,6 +150,7 @@
action: navigate
navigation_path: {{ person["name"]|lower|replace(" ", "_") }}
{% endfor %}
{% endif %}
#END HOMEPAGE HEADER

- type: vertical-stack
Expand Down Expand Up @@ -261,4 +263,10 @@
}
]]]
{% endif %}
{% endfor %}
{% else %}
- type: markdown
content: No rooms defined
{% endfor %}
- type: custom:button-card
color_type: blank-card
aspect_ratio: 1/1
2 changes: 1 addition & 1 deletion dwains-theme/views/main/04.cameras.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# dwains_theme

- path: cameras
icon: 'fas:cctv'
icon: 'mdi:cctv'
title: Cameras
badges: []
cards:
Expand Down
5 changes: 3 additions & 2 deletions dwains-theme/views/main/persons/person.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# dwains_theme

#Loop thought all the persons in the person section

{% if _d_t_config.persons %}
{% for person in _d_t_config.persons %}
- title: {{ person["name"] }}
path: {{ person["name"]|lower|replace(" ", "_") }}
Expand Down Expand Up @@ -48,4 +48,5 @@
{% if person["extend"] %}
- !include ../../../../{{ person["extend"]}}
{% endif %}
{% endfor %}
{% endfor %}
{% endif %}

0 comments on commit 7505009

Please sign in to comment.