1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 10:48:44 +00:00
Files
frontend/js/common/component/script/condition.js
Paulus Schoutsen 0707528bd7 Entity dropdown improvement (#674)
* Ignore hass changes while dropdown is open

* Upgrade vaadin-combo-box

* Fix styling on dev-service panel

* Fix styling for ha-entity-dropdown

* Fix height vaadin-combo-box dropdown

* Rename ha-entity-dropdown to ha-entity-picker

* More entity improvement (#675)

* Update script and automation editor to use entity picker

* Add entity and service picker to service dev panel

* Lint
2017-11-25 16:00:43 -08:00

25 lines
575 B
JavaScript

import { h, Component } from 'preact';
import StateCondition from '../condition/state.js';
import ConditionEdit from '../condition/condition_edit.js';
export default class ConditionAction extends Component {
// eslint-disable-next-line
render({ action, index, onChange, hass }) {
return (
<ConditionEdit
condition={action}
onChange={onChange}
index={index}
hass={hass}
/>
);
}
}
ConditionAction.configKey = 'condition';
ConditionAction.defaultConfig = {
condition: 'state',
...StateCondition.defaultConfig,
};