File tree Expand file tree Collapse file tree
custom_components/orphan_cleaner Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4747PANEL_ICON = "mdi:broom"
4848
4949# Versione corrente (usata per cache-busting)
50- VERSION = "2.0.5 "
50+ VERSION = "2.0.6 "
Original file line number Diff line number Diff line change 208208 < svg viewBox ="0 0 24 24 "> < path d ="M19.36 2.72 20.78 4.14l-1.4 1.41 1.41 1.41-4.24 4.24-1.41-1.41-6.89 6.9a4 4 0 0 1-1.2 4.71l-2.83 2.12-1.41-1.41 2.12-2.83a2 2 0 0 0 .27-2.1l-.27-.42L3 15.36l1.41-1.41 1.42 1.42 5.65-5.66-1.41-1.41 4.24-4.24 1.41 1.41z "/> </ svg >
209209 </ div >
210210 < div >
211- < div class ="topbar-title "> Orphan Entity Cleaner < span style ="font-size:11px;font-weight:400;color:var(--text2);margin-left:6px "> v2.0.5 </ span > </ div >
211+ < div class ="topbar-title "> Orphan Entity Cleaner < span style ="font-size:11px;font-weight:400;color:var(--text2);margin-left:6px "> v2.0.6 </ span > </ div >
212212 < div class ="topbar-sub "> Home Assistant Integration — orphan entity cleanup</ div >
213213 </ div >
214214 < div class ="topbar-spacer "> </ div >
@@ -286,8 +286,6 @@ <h3>Available services</h3>
286286
287287</ div >
288288
289- < div id ="debug-box " style ="margin:10px 0;padding:10px 14px;background:var(--surface2);border-radius:var(--radius-sm);font-size:11px;font-family:monospace;color:var(--text2);display:none;white-space:pre-wrap;border:1px solid var(--border2); "> </ div >
290-
291289<!-- Confirm modal -->
292290< div class ="overlay-wrap " id ="overlay ">
293291 < div class ="modal ">
@@ -323,13 +321,7 @@ <h2>Confirm deletion</h2>
323321function applyIgnore ( ) {
324322 const items = filteredOrphans ( ) ;
325323 const active = items . filter ( e => ! e . _ignored ) ;
326- const dbg = document . getElementById ( 'debug-box' ) ;
327- const platformsInData = [ ...new Set ( allOrphans . map ( e => e . platform ) ) ] . sort ( ) ;
328- dbg . style . display = 'block' ;
329- dbg . textContent =
330- 'ignorePlatforms set : ' + JSON . stringify ( [ ...ignorePlatforms ] ) + '\n' +
331- 'platforms in data : ' + JSON . stringify ( platformsInData ) + '\n' +
332- 'ignored count : ' + items . filter ( e => e . _ignored ) . length + ' / ' + items . length ;
324+
333325 // deseleziona entità che ora sono ignorate
334326 items . filter ( e => e . _ignored ) . forEach ( e => selected . delete ( e . entity_id ) ) ;
335327 renderTable ( items ) ;
Original file line number Diff line number Diff line change 11{
22 "domain" : " orphan_cleaner" ,
33 "name" : " Orphan Entity Cleaner" ,
4- "version" : " 2.0.5 " ,
4+ "version" : " 2.0.6 " ,
55 "documentation" : " https://github.com/Franz646/orphan-cleaner" ,
66 "issue_tracker" : " https://github.com/Franz646/orphan-cleaner/issues" ,
77 "codeowners" : [
You can’t perform that action at this time.
0 commit comments