mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-09 10:26:35 +00:00
Bug fixes
This commit is contained in:
parent
f02d42d79c
commit
a51b9c1eb5
@ -78,7 +78,6 @@ export default class Automation extends Component {
|
|||||||
<Trigger trigger={trigger} onChange={this.triggerChanged} />
|
<Trigger trigger={trigger} onChange={this.triggerChanged} />
|
||||||
</ha-config-section>
|
</ha-config-section>
|
||||||
|
|
||||||
{ condition &&
|
|
||||||
<ha-config-section is-wide={isWide}>
|
<ha-config-section is-wide={isWide}>
|
||||||
<span slot='header'>Conditions</span>
|
<span slot='header'>Conditions</span>
|
||||||
<span slot='introduction'>
|
<span slot='introduction'>
|
||||||
@ -93,7 +92,7 @@ export default class Automation extends Component {
|
|||||||
</a></p>
|
</a></p>
|
||||||
</span>
|
</span>
|
||||||
<Condition condition={condition} onChange={this.conditionChanged} />
|
<Condition condition={condition} onChange={this.conditionChanged} />
|
||||||
</ha-config-section>}
|
</ha-config-section>
|
||||||
|
|
||||||
<ha-config-section is-wide={isWide}>
|
<ha-config-section is-wide={isWide}>
|
||||||
<span slot='header'>Action</span>
|
<span slot='header'>Action</span>
|
||||||
|
@ -15,7 +15,7 @@ export default class SunCondition extends Component {
|
|||||||
const condition = { ...this.props.condition };
|
const condition = { ...this.props.condition };
|
||||||
|
|
||||||
if (ev.target.selected) {
|
if (ev.target.selected) {
|
||||||
condition[key] = ev.target.value;
|
condition[key] = ev.target.selected;
|
||||||
} else {
|
} else {
|
||||||
delete condition[key];
|
delete condition[key];
|
||||||
}
|
}
|
||||||
|
@ -216,6 +216,7 @@ Polymer({
|
|||||||
trigger: [
|
trigger: [
|
||||||
{ platform: 'state' },
|
{ platform: 'state' },
|
||||||
],
|
],
|
||||||
|
condition: [],
|
||||||
action: [
|
action: [
|
||||||
{ service: '' },
|
{ service: '' },
|
||||||
],
|
],
|
||||||
@ -253,7 +254,7 @@ Polymer({
|
|||||||
this.dirty = false;
|
this.dirty = false;
|
||||||
|
|
||||||
if (this.creatingNew) {
|
if (this.creatingNew) {
|
||||||
history.pushState(null, null, '/automation/edit/' + id);
|
history.replaceState(null, null, '/config/automation/edit/' + id);
|
||||||
this.fire('location-changed');
|
this.fire('location-changed');
|
||||||
}
|
}
|
||||||
}.bind(this), function (errors) {
|
}.bind(this), function (errors) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user