mirror of
https://github.com/home-assistant/frontend.git
synced 2025-12-20 10:48:44 +00:00
* 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
25 lines
575 B
JavaScript
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,
|
|
};
|