Make sure graphs extend till the intended end time (#378)

This commit is contained in:
Andrey
2017-08-06 09:31:07 -07:00
committed by Paulus Schoutsen
parent 478f6eb3b1
commit 4755b0438c
5 changed files with 47 additions and 12 deletions
+11 -3
View File
@@ -44,7 +44,7 @@
hass='[[hass]]'
filter-type='[[_filterType]]'
start-time='[[_computeStartTime(_currentDate)]]'
end-time='[[_computeEndTime(_currentDate, _periodIndex)]]'
end-time='[[endTime]]'
data='{{stateHistoryInput}}'
is-loading='{{isLoadingData}}'
></ha-state-history-data>
@@ -80,8 +80,11 @@
</paper-listbox>
</paper-dropdown-menu>
</div>
<state-history-charts history-data="[[stateHistoryOutput]]"
is-loading-data="[[isLoadingData]]"></state-history-charts>
<state-history-charts
history-data="[[stateHistoryOutput]]"
is-loading-data="[[isLoadingData]]"
end-time="[[endTime]]">
</state-history-charts>
</div>
</app-header-layout>
</template>
@@ -126,6 +129,11 @@ Polymer({
value: false,
},
endTime: {
type: Object,
computed: '_computeEndTime(_currentDate, _periodIndex)',
},
// ISO8601 formatted date string
_currentDate: {
type: String,