mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
add Developer Mode and value to API Call
This commit is contained in:
@@ -42,6 +42,7 @@ export interface Settings {
|
||||
modbus_port: number;
|
||||
modbus_max_clients: number;
|
||||
modbus_timeout: number;
|
||||
developer_mode: boolean;
|
||||
}
|
||||
|
||||
export enum busConnectionStatus {
|
||||
@@ -273,6 +274,7 @@ export interface APIcall {
|
||||
device: string;
|
||||
cmd: string;
|
||||
id: number;
|
||||
value?: string; // optional
|
||||
}
|
||||
|
||||
export interface Action {
|
||||
|
||||
@@ -686,6 +686,16 @@ const ApplicationSettings = () => {
|
||||
<Typography sx={{ pb: 1, pt: 2 }} variant="h6" color="primary">
|
||||
{LL.SPECIAL_FUNCTIONS()}
|
||||
</Typography>
|
||||
<BlockFormControlLabel
|
||||
control={
|
||||
<Checkbox
|
||||
checked={data.developer_mode}
|
||||
onChange={updateFormValue}
|
||||
name="developer_mode"
|
||||
/>
|
||||
}
|
||||
label={LL.DEVELOPER_MODE()}
|
||||
/>
|
||||
<BlockFormControlLabel
|
||||
control={
|
||||
<Checkbox
|
||||
@@ -696,7 +706,6 @@ const ApplicationSettings = () => {
|
||||
}
|
||||
label={LL.HEATINGOFF()}
|
||||
/>
|
||||
|
||||
<BlockFormControlLabel
|
||||
control={
|
||||
<Checkbox
|
||||
|
||||
Reference in New Issue
Block a user