Skip to content

Commit c0e55b0

Browse files
committed
remove system metrics graph functionality
1 parent c5ddcdb commit c0e55b0

28 files changed

Lines changed: 11 additions & 1749 deletions

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
},
4646
"dependencies": {
4747
"@lit/task": "^1.0.3",
48-
"chart.js": "^4.5.1",
4948
"fast-deep-equal": "^3.1.3",
5049
"lit": "^3.3.1"
5150
}

src/cards/editor.ts

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ const getSectionExcludeOptions = (hass: HomeAssistant): SelectOption[] => {
4747
label: l('editor.actions'),
4848
value: 'actions',
4949
},
50-
{
51-
label: l('editor.chart'),
52-
value: 'chart',
53-
},
5450
{
5551
label: l('editor.footer'),
5652
value: 'footer',
@@ -317,43 +313,6 @@ const getSchema = (hass: HomeAssistant): HaFormSchema[] => {
317313
},
318314
],
319315
},
320-
{
321-
name: 'chart',
322-
label: 'editor.chart',
323-
type: 'expandable' as const,
324-
icon: 'mdi:chart-line',
325-
schema: [
326-
{
327-
name: 'line_type',
328-
label: 'editor.chart_line_type',
329-
required: false,
330-
selector: {
331-
select: {
332-
multiple: false,
333-
mode: 'dropdown' as const,
334-
options: [
335-
{
336-
label: l('editor.chart_line_type_normal'),
337-
value: 'normal',
338-
},
339-
{
340-
label: l('editor.chart_line_type_gradient'),
341-
value: 'gradient',
342-
},
343-
{
344-
label: l('editor.chart_line_type_gradient_no_fill'),
345-
value: 'gradient_no_fill',
346-
},
347-
{
348-
label: l('editor.chart_line_type_no_fill'),
349-
value: 'no_fill',
350-
},
351-
],
352-
},
353-
},
354-
},
355-
],
356-
},
357316
{
358317
name: 'features',
359318
label: 'editor.features',

src/html/bake-pi.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import type { HomeAssistant } from '@hass/types';
22
import type { Config } from '@type/config';
33
import type { AdGuardSetup } from '@type/types';
44
import { html, type TemplateResult } from 'lit';
5-
import { createSystemMetricsGraph } from './components/create-system-metrics-graph';
65
import { createCardHeader } from './pi-crust';
76
import { createDashboardStats } from './pi-fillings';
87
import { createCardActions } from './pi-flavors';
@@ -33,7 +32,6 @@ export const renderAdGuardCard = (
3332
</div>
3433
${createCardActions(element, hass, setup, primary, config)}
3534
${createFooter(element, hass, config, primary)}
36-
${createSystemMetricsGraph(hass, primary, config)}
3735
</ha-card>
3836
`;
3937
};

src/html/components/create-system-metrics-graph.ts

Lines changed: 0 additions & 41 deletions
This file was deleted.

src/html/components/get-cpu-gradient.ts

Lines changed: 0 additions & 53 deletions
This file was deleted.

src/html/components/get-memory-gradient.ts

Lines changed: 0 additions & 53 deletions
This file was deleted.

src/html/components/is-graph-sensor.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)