+
    "i                       R t ^ RIHt ^ RIHtHtHt ^ RIHt ^ RI	H
t
 ^ RIHt ^ RIHt ^ RIHtHt ^ RIHtHt ^ R	IHt ^ R
IHt ^ RIHt ^ RIHt ^ RIH t  ^ RI!H"t" ^RI#H$t$ ^RI%H&t&H't'H(t(H)t) ^RI*H+t+ ^RI,H-t-H.t.H/t/ ^RI0H1t1 ^RI2H3t3 ^RI4H5t5 ^RI6H7t7 ^RI8H9t9 ]Pt                  ]Pv                  .t<R R lt=R R lt>R R lt?R R lt@R # )!zHACS gives you a powerful UI to handle downloads of all your custom needs.

For more details about this integration, please refer to the documentation at
https://hacs.xyz/
)annotations)AIOGitHubAPIExceptionGitHub	GitHubAPI)ACCEPT_HEADERS)AwesomeVersion)async_remove_panel)system_health_info)SOURCE_IMPORTConfigEntry)Platform__version__)HomeAssistant)async_get_clientsession)	async_get)async_call_later)async_at_start)async_get_integration)HacsBase)DOMAINHACS_SYSTEM_IDMINIMUM_HA_VERSIONSTARTUP)HacsDataClient)HacsDisabledReason	HacsStageLovelaceMode)async_register_frontend)HacsData)QueueManager)'version_left_higher_or_equal_then_right)!async_register_websocket_commandsc               $    V ^8  d   QhRRRRRR/#    hassr   config_entryr   returnbool )formats   "*/config/custom_components/hacs/__init__.py__annotate__r,   $   s+     O O
OO 
O    c           	       a aaaa	"   \        4       ;S P                  \        &   o	S	P                  4        SP                  \
        8X  d7   S P                  S P                  P                  SP                  4      4       R# S	P                  P                  RS/SP                  CSP                  C4       \        S \        4      G Rj  xL
 pS	P                  R4       S	P                  P!                  \"        VP$                  4       \'        S 4      pVS	n        VP$                  S	n        VP$                  R8H  S	P                  n        S S	n        \/        S R7      S	n        \3        S	R7      S	n        \5        VRVP$                   2R7      S	n        R	S	P8                  n        VS	n        \>        P@                  S	PB                  n"         \G        S	P,                  4      G Rj  xL
 p\?        VPI                  R
R4      4      S	PB                  n"        S	P,                  PL                  PO                  4       S	PB                  n(        S	PB                  PR                  f   \U        \V        4      S	PB                  n)        \Y        S	P                  PZ                  VRRS	P$                   2R\\        R,          /R7      S	n/        \a        RRS	P                  PZ                  RV/RRS	P$                   2/B S	n1        VV	V 3R loRVVV	V 3R lloS! 4       G Rj  xL
  \e        S 4      pVPg                  R\        \h        4      ;p'       d   VP                  V4       R	#  EL ELx  \J         d     ELZi ; i L]5i)zInitialize the integrationFr&   Nz0.0.0)r%   )hacszHACS/)sessionclient_nameTmodeyamlz
User-AgentAcceptpreview)headerstokenr0   r1   c                 R  <"   SP                  4         ^ RIp SP                  P                  R4       SP	                  \
        P                  4       R#   \         d     Mi ; i\        SP                  P                  P                  \        4      '       gB   SP                  P                  R\        4       SP	                  \
        P                  4       R# SP                  P                  4       G Rj  xL 
 '       g"   SP	                  \
        P                  4       R# SP!                  4        \#        S4       \%        SS4      G Rj  xL 
  SP&                  P)                  S\*        4      G Rj  xL 
  SP-                  \.        P0                  4       SP2                  P4                  '       d   R# SP-                  \.        P6                  4       SP                  P9                  R4       \;        SSP<                  R7       SP2                  P4                  '       * # 5i)zHACS startup tasks.NzoHACS cannot be used with custom_updater. To use HACS you need to remove custom_updater from `custom_components`Fz8You need HA version %s or newer to use this integration.zFSetup complete, waiting for Home Assistant before startup tasks starts)r%   at_start_cb)enable_hacs custom_components.custom_updaterlogcriticaldisable_hacsr   
CONSTRAINSImportErrorr    core
ha_versionstringr   datarestoreRESTOREset_active_categoriesr!   r   config_entriesasync_forward_entry_setups	PLATFORMS	set_stager   SETUPsystemdisabledWAITINGinfor   startup_tasks)custom_componentsr&   r/   r%   s    r+   async_startup4_async_initialize_integration.<locals>.async_startupk   s    	3 HHY
 0;;<  		 7II  ''
 
 HHJ" 0;;<YY&&(((0889""$)$/%dD111!!<<\9UUUy';;y(()^_ 	Dd.@.@A;;''''sZ   H'A <H'A# H'"A##BH'8C;9
H'AH'E(H'8E;9?H'9A.H'c                0  <"    S! 4       G Rj  xL
 pV'       gT   SP                  P                  \        P                  8w  d)   SP
                  P                  R4       \        SRS4       R# SP                  4        R#  Lq  \          d    Rp L~i ; i5i)z Startup wrapper for yaml config.NFz,Could not setup HACS, trying again in 15 mini  )	r   rM   disabled_reasonr   INVALID_TOKENr<   rP   r   r:   )_startup_resultrS   async_try_startupr/   r%   s   & r+   rZ   8_async_initialize_integration.<locals>.async_try_startup   sx     	##0?2N {{**.@.N.NNLM s,=> 3$ 	#"N	#s=   B
B BB BA%BB BBBBsensorr)   )N)5r   rD   r   r:   sourcer
   async_create_taskrH   async_removeentry_idconfigurationupdate_from_dictoptionsr   rK   r<   rP   r   versionr   integrationdevr%   r   queuer   r   data_clientrM   runningr0   r   YAMLrA   lovelace_moder	   getBaseExceptionconfigpathconfig_pathrB   r   	HAVERSIONr   r7   r   githubr   	githubapiasync_get_entity_registryasync_get_entity_idr   )
r%   r&   re   clientsessionlovelace_infoer
old_sensorrS   rZ   r/   s
   ff     @@@r+   _async_initialize_integrationrz   $   s    
  (z)DIIfm+t22??@U@UVW''L	
	
 ""	
 .dF;;KNN4HHMM';../+D1M"D&&DL(00G;DDI4(DJd#DI%K//01D DKK DL*//DII0;;".}/@/@/P"Q		 !II,,113DIIyy#-i8		   E$,,0nY/
DK    && E$,,0
1DN1(f  
 
#4	(B++HfnMMzM

# u <. < r sW   CM0M	C?M0	M !M".M D M0M.AM0M M+'M0*M++M0c               $    V ^8  d   QhRRRRRR/# r#   r)   )r*   s   "r+   r,   r,      s!     5 5- 5{ 5t 5r-   c                   "   VP                  VP                  \        4      4       \        WR7      G Rj  xL
 pV P                  \
        ,          pT;'       d    VP                  P                  '       * #  L@5i)z!Set up this integration using UI.r%   r&   N)async_on_unloadadd_update_listenerasync_reload_entryrz   rD   r   rM   rN   )r%   r&   setup_resultr/   s   &&  r+   async_setup_entryr      s[       !A!ABT!UV6D\\LYYv&D44 4 444 ]s   4A9A7#A9A9c               $    V ^8  d   QhRRRRRR/# r#   r)   )r*   s   "r+   r,   r,      s"        =    PT  r-   c                *  "   V P                   \        ,          pVP                  P                  '       d   VP                  P                  R4       R# VP                  P                  4        VP                   F
  pV! 4        K  	  VP                   P                  RR7      G Rj  xL
   V P                   P                  R/ 4      P                  R4      '       d(   VP                  P                  R4       \        V R4       T P                  P                  T\        4      G Rj  xL
 pTP!                  R4       TP#                  \$        P&                  4       T P                   P)                  \        R4       T#  L  \         d     Li ; i Li5i)	zHandle removal of an entry.z/Pending tasks, can not unload, try again later.FT)forceNfrontend_panelsr/   zRemoving sidepanel)rD   r   rg   has_pending_tasksr<   warningclearrecurring_tasksasync_writerl   rP   r   AttributeErrorrH   async_unload_platformsrJ   rK   r>   r   REMOVEDpop)r%   r&   r/   task	unload_oks   &&   r+   async_unload_entryr      s3    YYv&Dzz###JK 	JJ$$ %
 ))

d

+++99==*B/33F;;HHMM./tV, ))@@yYYINN4(001IIMM&$! ,   ZsI   B$F&E>'F,0F  'F  #F'F(AF FFFFc               $    V ^8  d   QhRRRRRR/# )r$   r%   r   r&   r   r'   Noner)   )r*   s   "r+   r,   r,      s"     0 0= 0 0PT 0r-   c                r   "   \        W4      G Rj  xL
 '       g   R# \        W4      G Rj  xL
  R#  L! L5i)zReload the HACS config entry.N)r   r   r}   s   &&r+   r   r      s,     #D777
D
/// 8/s   73	77577N)A__doc__
__future__r   aiogithubapir   r   r   aiogithubapi.constr   awesomeversionr   !homeassistant.components.frontendr   /homeassistant.components.lovelace.system_healthr	   homeassistant.config_entriesr
   r   homeassistant.constr   r   rq   homeassistant.corer   $homeassistant.helpers.aiohttp_clientr   %homeassistant.helpers.entity_registryr   rt   homeassistant.helpers.eventr   homeassistant.helpers.startr   homeassistant.loaderr   baser   constr   r   r   r   rh   r   enumsr   r   r   frontendr   
utils.datar   utils.queue_managerr   utils.versionr    	websocketr!   SWITCHUPDATErJ   rz   r   r   r   r)   r-   r+   <module>r      s    # A A - ) @ N C B , H X 8 6 6  F F ' > > -   - B 8__hoo.	Od5 F0r-   