mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-09 18:36:35 +00:00
Pass hass to state-history-charts (#1252)
This commit is contained in:
parent
ce3564625e
commit
d16f4c846a
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user