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
get rid of stray console statements
Vincent0dd933341942
diff --git a/ui/component/or-attribute-card/src/index.ts b/ui/component/or-attribute-card/src/index.tsindex a47310068..74adcf87d 100644--- a/ui/component/or-attribute-card/src/index.ts+++ b/ui/component/or-attribute-card/src/index.ts@@ -677,14 +677,12 @@ export class OrAttributeCard extends LitElement {}protected getFormattedDelta(firstVal: number, lastVal: number): {val?: number, unit?: string} {- console.log(firstVal,lastVal);if (firstVal && lastVal) {if (lastVal === 0 && firstVal === 0) {return {val: 0, unit: "%"};} else if (lastVal === 0 && firstVal !== 0) {return {val: 100, unit: "%"};} else {- console.log("helo");const math = Math.round((lastVal - firstVal) / firstVal * 100);return {val: math, unit: "%"};}