import hassAttributesUtil from '../../home-assistant-polymer/src/util/hass-attributes-util.js';

window.hassAttributeUtil = window.hassAttributeUtil || {};
const SUPPORTED_SLIDER_MODES = [
  'single-line', 'break-slider', 'break-slider-toggle', 'hide-slider', 'no-slider',
];

const customUiAttributes = {
  group: undefined,
  device: undefined,
  templates: undefined,
  control_element: { type: 'string' },
  state_card_mode: {
    type: 'array',
    options: {
      light: SUPPORTED_SLIDER_MODES.concat('badges'),
      cover: SUPPORTED_SLIDER_MODES.concat('badges'),
      climate: SUPPORTED_SLIDER_MODES.concat('badges'),
      '*': ['badges'],
    },
  },
  state_card_custom_ui_secondary: { type: 'string' },
  badges_list: { type: 'json' },
  show_last_changed: { type: 'boolean' },
  hide_control: { type: 'boolean' },
  extra_data_template: { type: 'string' },
  extra_badge: { type: 'json' },
  stretch_slider: { type: 'boolean' },
  slider_theme: { type: 'json' },
  theme: { type: 'string' },
  confirm_controls: { type: 'boolean' },
  confirm_controls_show_lock: { type: 'boolean' },
  hide_in_default_view: { type: 'boolean' },
  icon_color: { type: 'string' },
};
window.hassAttributeUtil.LOGIC_STATE_ATTRIBUTES = hassAttributesUtil.LOGIC_STATE_ATTRIBUTES;
window.hassAttributeUtil.UNKNOWN_TYPE = hassAttributesUtil.UNKNOWN_TYPE;
Object.assign(window.hassAttributeUtil.LOGIC_STATE_ATTRIBUTES, customUiAttributes);

@@ -364,16 +364,64 @@
 efined,%0A
+  state: undefined,%0A  _stateDisplay: undefined,%0A
   contro

Add 'state' and '_stateDisplay' to the list of hidden attributes