Pass hass to state-history-charts (#1252)

This commit is contained in:
c727 2018-06-03 13:36:27 +02:00 committed by Paulus Schoutsen
parent ce3564625e
commit d16f4c846a
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ class HaHistoryGraphCard extends EventsMixin(PolymerElement) {
<paper-card dialog\$="[[inDialog]]" on-click="cardTapped" elevation="[[computeElevation(inDialog)]]">
<div class="header">[[computeTitle(stateObj)]]</div>
<div class="content">
<state-history-charts history-data="[[stateHistory]]" is-loading-data="[[stateHistoryLoading]]" up-to-now="" no-single="">
<state-history-charts hass="[[hass]]" history-data="[[stateHistory]]" is-loading-data="[[stateHistoryLoading]]" up-to-now no-single>
</state-history-charts>
</div>
</paper-card>

View File

@ -75,7 +75,7 @@ import EventsMixin from '../../mixins/events-mixin.js';
<paper-dialog-scrollable dialog-element="[[dialogElement]]">
<template is="dom-if" if="[[_computeShowHistoryComponent(hass, stateObj)]]" restamp="">
<ha-state-history-data hass="[[hass]]" filter-type="recent-entity" entity-id="[[stateObj.entity_id]]" data="{{_stateHistory}}" is-loading="{{_stateHistoryLoading}}" cache-config="[[_cacheConfig]]"></ha-state-history-data>
<state-history-charts history-data="[[_stateHistory]]" is-loading-data="[[_stateHistoryLoading]]" up-to-now="" no-single="[[large]]"></state-history-charts>
<state-history-charts hass="[[hass]]" history-data="[[_stateHistory]]" is-loading-data="[[_stateHistoryLoading]]" up-to-now no-single="[[large]]"></state-history-charts>
</template>
<more-info-content state-obj="[[stateObj]]" hass="[[hass]]"></more-info-content>
</paper-dialog-scrollable>