File tree 2 files changed +2
-1
lines changed
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " xiaomi-vacuum-map-card" ,
3
- "version" : " v2.2.3 " ,
3
+ "version" : " v2.2.4 " ,
4
4
"description" : " Xiaomi Vacuum Map Card" ,
5
5
"keywords" : [
6
6
" home-assistant" ,
Original file line number Diff line number Diff line change @@ -828,6 +828,7 @@ export class XiaomiVacuumMapCard extends LitElement {
828
828
private _isInEditor ( ) : boolean {
829
829
function isInEditor ( e : Element ) : boolean {
830
830
return ( e . parentElement ?. tagName ?. toLowerCase ( ) === "hui-card" && "preview" in ( e . parentElement ?. attributes ?? [ ] ) )
831
+ || ( e . parentElement ?. tagName ?. toLowerCase ( ) === "hui-section" && "preview" in ( e . parentElement ?. attributes ?? [ ] ) )
831
832
|| e . parentElement ?. tagName ?. toLowerCase ( ) === "hui-card-preview"
832
833
|| e . parentElement != null && isInEditor ( e . parentElement )
833
834
|| e . parentNode ?. toString ( ) == "[object ShadowRoot]" && isInEditor ( ( e . getRootNode ( ) as ShadowRoot ) . host ) ;
You can’t perform that action at this time.
0 commit comments