Run pre-commit hooks over existing codebase

Co-Authored-By: Ben Phelps <ben@phelps.io>
This commit is contained in:
shamoon 2023-10-17 23:26:55 -07:00
parent fa50bbad9c
commit 19c25713c4
387 changed files with 4785 additions and 4109 deletions

View file

@ -16,21 +16,34 @@ export default function Component({ service }) {
if (!stateData) {
return (
<Container service={service}>,
<Container service={service}>
,
<Block label="evcc.pv_power" />
<Block label="evcc.grid_power" />
<Block label="evcc.home_power" />
<Block label="evcc.charge_power"/>
<Block label="evcc.charge_power" />
</Container>
);
}
return (
<Container service={service}>
<Block label="evcc.pv_power" value={`${t("common.number", { value: stateData.result.pvPower })} ${t("evcc.watt_hour")}`} />
<Block label="evcc.grid_power" value={`${t("common.number", { value: stateData.result.gridPower })} ${t("evcc.watt_hour")}`} />
<Block label="evcc.home_power" value={`${t("common.number", { value: stateData.result.homePower })} ${t("evcc.watt_hour")}`} />
<Block label="evcc.charge_power" value={`${t("common.number", { value: stateData.result.loadpoints[0].chargePower })} ${t("evcc.watt_hour")}`} />
<Block
label="evcc.pv_power"
value={`${t("common.number", { value: stateData.result.pvPower })} ${t("evcc.watt_hour")}`}
/>
<Block
label="evcc.grid_power"
value={`${t("common.number", { value: stateData.result.gridPower })} ${t("evcc.watt_hour")}`}
/>
<Block
label="evcc.home_power"
value={`${t("common.number", { value: stateData.result.homePower })} ${t("evcc.watt_hour")}`}
/>
<Block
label="evcc.charge_power"
value={`${t("common.number", { value: stateData.result.loadpoints[0].chargePower })} ${t("evcc.watt_hour")}`}
/>
</Container>
);
}
}

View file

@ -7,8 +7,8 @@ const widget = {
mappings: {
state: {
endpoint: "state",
}
},
},
};
export default widget;
export default widget;