刚刚用最新版本进行了测试:
v=1.0:81setConfig不是_cards.config.cards的函数。map (swipe-card.js?v=1.0:81) at Array。map ()在HTMLElement。在config.cards.map.cardConfig (27194aefb40e6f5b8d5f.chunk.js:1371)中设置hass [as hass]。map ()在HTMLElement。_createCards (27194aefb40e6f5b8d5f.chunk.js:1371) at object . runmethodeeffect [as fn] (app-084b7564.js:1067) at runEffectsForProperty (app-084b7564.js:1067) at runEffectsForProperty (app-084b7564.js:1067) at HTMLElement。_propertiesChanged (app - 084 b7564.js: 1067)
我的配置:
- type: custom:swipe-card card_width: '185px' parameters: effect: 'coverflow' grabCursor: true centeredSlides: true slidesPerView: 'auto' coverfloweeffect: rotate: 50 stretch: 0 depth: 100 modifier: 1 slidesshadows: true pagination: type: 'bullets' cards: - type: sensor entity: sensor。serre_temperature name: Temperatuur line_width: 8 line_color: '#FF6384' - type:传感器实体:传感器。serre_humidity name: Luchtvochtigheid line_color: '#36A2EB' line_width: 8 - url: /local/custom-lovelace/刷卡/刷卡.js