homeassistant/custom_components/hacs/hacs_frontend_experimental/frontend_latest/6196.BmwxzREjMWc.js

2 lines
10 KiB
JavaScript
Raw Normal View History

2025-01-10 21:08:35 -08:00
export const id=6196;export const ids=[6196];export const modules={58135:(e,t,i)=>{i.d(t,{z:()=>o});const o=e=>(t,i)=>e.includes(t,i)},56196:(e,t,i)=>{i.r(t),i.d(t,{HaSelectorState:()=>p});var o=i(309),a=i(5095),s=i(95260),n=i(49389),r=i(18394),d=i(3850),l=i(21157);const u={alarm_control_panel:["armed_away","armed_custom_bypass","armed_home","armed_night","armed_vacation","arming","disarmed","disarming","pending","triggered"],automation:["on","off"],binary_sensor:["on","off"],button:[],calendar:["on","off"],camera:["idle","recording","streaming"],cover:["closed","closing","open","opening"],device_tracker:["home","not_home"],fan:["on","off"],humidifier:["on","off"],input_boolean:["on","off"],input_button:[],lawn_mower:["error","paused","mowing","docked"],light:["on","off"],lock:["jammed","locked","locking","unlocked","unlocking"],media_player:["off","on","idle","playing","paused","standby","buffering"],person:["home","not_home"],plant:["ok","problem"],remote:["on","off"],scene:[],schedule:["on","off"],script:["on","off"],siren:["on","off"],sun:["above_horizon","below_horizon"],switch:["on","off"],timer:["active","idle","paused"],update:["on","off"],vacuum:["cleaning","docked","error","idle","paused","returning"],valve:["closed","closing","open","opening"],weather:["clear-night","cloudy","exceptional","fog","hail","lightning-rainy","lightning","partlycloudy","pouring","rainy","snowy-rainy","snowy","sunny","windy-variant","windy"]},c={alarm_control_panel:{code_format:["number","text"]},binary_sensor:{device_class:["battery","battery_charging","co","cold","connectivity","door","garage_door","gas","heat","light","lock","moisture","motion","moving","occupancy","opening","plug","power","presence","problem","running","safety","smoke","sound","tamper","update","vibration","window"]},button:{device_class:["restart","update"]},camera:{frontend_stream_type:["hls","web_rtc"]},climate:{hvac_action:["off","idle","preheating","heating","cooling","drying","fan"]},cover:{device_class:["awning","blind","curtain","damper","door","garage","gate","shade","shutter","window"]},device_tracker:{source_type:["bluetooth","bluetooth_le","gps","router"]},fan:{direction:["forward","reverse"]},humidifier:{device_class:["humidifier","dehumidifier"],action:["off","idle","humidifying","drying"]},media_player:{device_class:["tv","speaker","receiver"],media_content_type:["album","app","artist","channel","channels","composer","contibuting_artist","episode","game","genre","image","movie","music","playlist","podcast","season","track","tvshow","url","video"],repeat:["off","one","all"]},number:{device_class:["temperature"]},sensor:{device_class:["apparent_power","aqi","battery","carbon_dioxide","carbon_monoxide","current","date","duration","energy","frequency","gas","humidity","illuminance","monetary","nitrogen_dioxide","nitrogen_monoxide","nitrous_oxide","ozone","ph","pm1","pm10","pm25","power_factor","power","pressure","reactive_power","signal_strength","sulphur_dioxide","temperature","timestamp","volatile_organic_compounds","volatile_organic_compounds_parts","voltage"],state_class:["measurement","total","total_increasing"]},switch:{device_class:["outlet","switch"]},update:{device_class:["firmware"]},water_heater:{away_mode:["on","off"]}},h=(e,t=void 0)=>{const i=(0,d.N)(e),o=[];switch(!t&&i in u?o.push(...u[i]):t&&i in c&&t in c[i]&&o.push(...c[i][t]),i){case"climate":t?"fan_mode"===t?o.push(...e.attributes.fan_modes):"preset_mode"===t?o.push(...e.attributes.preset_modes):"swing_mode"===t&&o.push(...e.attributes.swing_modes):o.push(...e.attributes.hvac_modes);break;case"device_tracker":case"person":t||o.push("home","not_home");break;case"event":"event_type"===t&&o.push(...e.attributes.event_types);break;case"fan":"preset_mode"===t&&o.push(...e.attributes.preset_modes);break;case"humidifier":"mode"===t&&o.push(...e.attributes.available_modes);break;case"input_select":case"select":t||o.push(...e.attributes.options);break;case"light":"effect"===t&&e.attributes.effect_list?o.push(...e.attributes.effect_list):"color_mode"===t&&e.attributes.supported_color_modes&&
//# sourceMappingURL=6196.BmwxzREjMWc.js.map