ITADN

[Bug]: cant use zone.home which has latitude / longitude attributes

#95Opendogmatic69 创建于 2026-05-20
bugStale
D
dogmatic69commented
### Short summary 📝 as per title ### Detailed description 📋 No way to make it work, throws errors unless I use hard coded lat/long option. ### Version 📦 v1.12.0 ### Card Configuration ```yaml - type: custom:lunar-phase-card location_source: entity entity: zone.home ``` ### Environment 🌐 windows / firefox ### Logs and screenshots 📂 <img width="1155" height="191" alt="Image" src="https://github.com/user-attachments/assets/6e5bddab-a0e4-49d7-a1fd-ecc3ef27b427" /> ``` Uncaught (in promise) Error: latitude missing Ek lunar-phase-card.js:2741 Dk lunar-phase-card.js:2741 get _moonData lunar-phase-card.js:2741 get moonData lunar-phase-card.js:2741 get _filteredData lunar-phase-card.js:2741 _renderBaseSection lunar-phase-card.js:2759 render lunar-phase-card.js:2755 kt lunar-phase-card.js:59 render lunar-phase-card.js:2755 update lunar-phase-card.js:23 performUpdate lunar-phase-card.js:12 scheduleUpdate lunar-phase-card.js:12 _$EP lunar-phase-card.js:12 requestUpdate lunar-phase-card.js:12 _$Ev lunar-phase-card.js:12 S lunar-phase-card.js:12 ut lunar-phase-card.js:23 wr lunar-phase-card.js:760 xr lunar-phase-card.js:760 jC lunar-phase-card.js:2741 I scoped-custom-element-registry.ts:642 t scoped-custom-element-registry.ts:408 r create-element-base.ts:149 c create-element-base.ts:179 c create-element-base.ts:285 f create-card-element.ts:112 _loadElement hui-card.ts:123 _loadElement hui-card.ts:159 r fire_event.ts:83 c create-element-base.ts:198 promise callback*34128/c/< create-element-base.ts:196 c create-element-base.ts:285 f create-card-element.ts:112 _loadElement hui-card.ts:123 load hui-card.ts:42 _createCardElement hui-section.ts:80 _cards hui-section.ts:378 _createCards hui-section.ts:377 _initializeConfig hui-section.ts:217 willUpdate hui-section.ts:108 performUpdate reactive-element.ts:1512 performUpdate storage.ts:172 scheduleUpdate reactive-element.ts:1410 _$EP reactive-element.ts:1382 requestUpdate reactive-element.ts:1321 _$Ev reactive-element.ts:1055 k reactive-element.ts:1038 e conditional-listener-mixin.ts:45 x hui-section.ts:39 I scoped-custom-element-registry.ts:642 t scoped-custom-element-registry.ts:408 createSectionElement hui-view.ts:131 _sections hui-view.ts:453 _createSections hui-view.ts:452 _setConfig hui-view.ts:296 _initializeConfig hui-view.ts:320 ```
5 条评论