"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([["45923"],{55374:function(n,e,r){r.r(e),r.d(e,{getESPHomeDeviceActions:function(){return u}});var t=r(61397),i=r(50264),o=(r(50113),r(74423),r(44114),r(18111),r(20116),r(26099),r(21699),r(77423)),c=function(n,e){return n.callWS({type:"esphome/get_encryption_key",entry_id:e})},a=(r(23792),r(3362),r(47764),r(62953),r(1087)),s=function(){return r.e("86310").then(r.bind(r,82277))},u=function(){var n=(0,i.A)((0,t.A)().m(function n(e,r,i){var u,p,f,l,y,d;return(0,t.A)().w(function(n){for(;;)switch(n.p=n.n){case 0:return u=[],n.n=1,(0,o.VN)(r,{domain:"esphome"});case 1:if(p=n.v,f=p.find(function(n){return i.config_entries.includes(n.entry_id)})){n.n=2;break}return n.a(2,[]);case 2:return l=f.entry_id,n.p=3,n.n=4,c(r,l);case 4:(y=n.v).encryption_key&&u.push({label:r.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:function(){return n=e,r={entry_id:l,encryption_key:y.encryption_key},void(0,a.r)(n,"show-dialog",{dialogTag:"dialog-esphome-encryption-key",dialogImport:s,dialogParams:r});var n,r}}),n.n=6;break;case 5:n.p=5,d=n.v,console.error("Failed to fetch ESPHome encryption key:",d);case 6:return n.a(2,u)}},n,null,[[3,5]])}));return function(e,r,t){return n.apply(this,arguments)}}()}}]);
//# sourceMappingURL=45923.99308c5f44b4c646.js.map