diff --git a/src/components/ha-cover-controls.html b/src/components/ha-cover-controls.html new file mode 100644 index 0000000000..893f316017 --- /dev/null +++ b/src/components/ha-cover-controls.html @@ -0,0 +1,58 @@ + + + + + + + + + + diff --git a/src/state-summary/state-card-cover.html b/src/state-summary/state-card-cover.html index ea8c047b0a..07f691acf5 100644 --- a/src/state-summary/state-card-cover.html +++ b/src/state-summary/state-card-cover.html @@ -2,11 +2,9 @@ - - - + @@ -60,27 +39,6 @@ Polymer({ stateObj: { type: Object, }, - - entityObj: { - type: Object, - computed: 'computeEntityObj(hass, stateObj)', - }, - }, - - computeEntityObj: function (hass, stateObj) { - return new window.CoverEntity(hass, stateObj); - }, - - onOpenTap: function () { - this.entityObj.openCover(); - }, - - onCloseTap: function () { - this.entityObj.closeCover(); - }, - - onStopTap: function () { - this.entityObj.stopCover(); }, });