Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

accidentally removed this

Vincent538644d004fe
diff --git a/ui/component/or-attribute-card/src/index.ts b/ui/component/or-attribute-card/src/index.ts
index 6519b0ad4..80b7f4c4d 100644
--- a/ui/component/or-attribute-card/src/index.ts
+++ b/ui/component/or-attribute-card/src/index.ts
@@ -285,6 +285,8 @@ export class OrAttributeCard extends LitElement {
protected async getData() {
const thisMoment = moment(this.now);
+ this.asset = await this.getAssetById(this.assetId);
+
const currentPeriod = {
start: thisMoment.startOf(this.period).toDate().getTime(),
end: thisMoment.endOf(this.period).toDate().getTime()