Polymer 2 fixes

This commit is contained in:
Paulus Schoutsen 2017-06-18 19:39:49 -07:00
parent 8b6db691ef
commit 4f9f6dd8ed
4 changed files with 50 additions and 49 deletions

View File

@ -103,7 +103,7 @@ Polymer({
},
computeAutomation: function (automations, automationId, creatingNew) {
if (creatingNew) {
if (creatingNew || !automations) {
return null;
}
for (var i = 0; i < automations.length; i++) {

View File

@ -5,6 +5,7 @@
<link rel="import" href="../../../src/components/buttons/ha-call-service-button.html">
<dom-module id="hassio-hass-info">
<template>
<style include="iron-flex ha-style">
paper-card {
display: block;
@ -21,7 +22,7 @@
margin-top: 16px;
}
</style>
<template>
<paper-card heading="Home Assistant">
<div class="card-content">
<table class='info'>

View File

@ -4,6 +4,7 @@
<link rel="import" href="../../../src/components/buttons/ha-call-api-button.html">
<dom-module id="hassio-host-info">
<template>
<style include="iron-flex ha-style">
paper-card {
display: block;
@ -20,7 +21,6 @@
margin-top: 16px;
}
</style>
<template>
<paper-card heading="Host OS">
<div class="card-content">
<table class='info'>

View File

@ -4,6 +4,7 @@
<link rel="import" href="../../../src/components/buttons/ha-call-api-button.html">
<dom-module id="hassio-supervisor-info">
<template>
<style include="iron-flex ha-style">
paper-card {
display: block;
@ -20,7 +21,6 @@
margin-top: 16px;
}
</style>
<template>
<paper-card heading="Supervisor">
<div class="card-content">
<table class='info'>