"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["45923"],{55374:function(e,n,o){o.d(n,{getESPHomeDeviceActions:function(){return c}});o(74423),o(44114),o(18111),o(20116),o(3362);var t=o(77423);o(62953);var i=o(1087);const r=()=>o.e("86310").then(o.bind(o,82277)),c=async(e,n,o)=>{const c=[],a=(await(0,t.VN)(n,{domain:"esphome"})).find(e=>o.config_entries.includes(e.entry_id));if(!a)return[];const s=a.entry_id;try{const o=await((e,n)=>e.callWS({type:"esphome/get_encryption_key",entry_id:n}))(n,s);o.encryption_key&&c.push({label:n.localize("ui.panel.config.devices.esphome.show_encryption_key"),icon:"M7 14C5.9 14 5 13.1 5 12S5.9 10 7 10 9 10.9 9 12 8.1 14 7 14M12.6 10C11.8 7.7 9.6 6 7 6C3.7 6 1 8.7 1 12S3.7 18 7 18C9.6 18 11.8 16.3 12.6 14H16V18H20V14H23V10H12.6Z",action:()=>{return n=e,t={entry_id:s,encryption_key:o.encryption_key},void(0,i.r)(n,"show-dialog",{dialogTag:"dialog-esphome-encryption-key",dialogImport:r,dialogParams:t});var n,t}})}catch(y){console.error("Failed to fetch ESPHome encryption key:",y)}return c}}}]);
//# sourceMappingURL=45923.f4f6427f9adeb132.js.map