fixed lint errors

This commit is contained in:
Ralf Bauer 2025-01-10 20:01:05 +01:00
parent 5466b90c52
commit 989524f55d

View File

@ -60,6 +60,7 @@ export default defineComponent({
.then((energy) => { .then((energy) => {
if (energy) { if (energy) {
this.chartData = [[{ type: 'date', id: 'Time' }, { type: 'number', id: 'Energy' }]]; this.chartData = [[{ type: 'date', id: 'Time' }, { type: 'number', id: 'Energy' }]];
// eslint-disable-next-line @typescript-eslint/no-explicit-any
energy.forEach((x: any[]) => { energy.forEach((x: any[]) => {
const d = new Date(x[0] + 2000, x[1] - 1, x[2], x[3]); const d = new Date(x[0] + 2000, x[1] - 1, x[2], x[3]);
this.chartData.push([d, Math.round(x[4])]) this.chartData.push([d, Math.round(x[4])])