100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
dont use underscore and rearrange
Vincenta13d46d70c0a
diff --git a/ui/component/or-attribute-card/src/index.ts b/ui/component/or-attribute-card/src/index.tsindex 12e181c35..bb28762b9 100644--- a/ui/component/or-attribute-card/src/index.ts+++ b/ui/component/or-attribute-card/src/index.ts@@ -53,27 +53,27 @@ export class OrAttributeCard extends LitElement {@property()public attributeName: string = "";- @property()- protected _data?: ValueDatapoint<any>[] = [];-@property()private cardTitle: string = "";@property()private assetName: string = "";+ @property()+ private data: ValueDatapoint<any>[] = [];+static get styles() {return [style];}- private getData = () => {connectedCallback() {super.connectedCallback();this.getData();}+ private getData = () => {this.getAssetById(this.assetId).then((data) => {console.log(data);