mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
fix lint warnings
This commit is contained in:
@@ -95,7 +95,7 @@ const SettingsApplication: FC = () => {
|
||||
try {
|
||||
setFieldErrors(undefined);
|
||||
await validate(createSettingsValidator(data), data);
|
||||
saveData();
|
||||
void saveData();
|
||||
} catch (errors: any) {
|
||||
setFieldErrors(errors);
|
||||
}
|
||||
@@ -110,12 +110,12 @@ const SettingsApplication: FC = () => {
|
||||
board_profile: boardProfile
|
||||
});
|
||||
} else {
|
||||
updateBoardProfile(boardProfile);
|
||||
void updateBoardProfile(boardProfile);
|
||||
}
|
||||
};
|
||||
|
||||
const restart = async () => {
|
||||
validateAndSubmit();
|
||||
void validateAndSubmit();
|
||||
try {
|
||||
await EMSESP.restart();
|
||||
setRestarting(true);
|
||||
|
||||
@@ -190,7 +190,7 @@ const SettingsCustomization: FC = () => {
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
fetchDevices();
|
||||
void fetchDevices();
|
||||
}, [fetchDevices]);
|
||||
|
||||
function formatValue(value: any) {
|
||||
@@ -266,7 +266,7 @@ const SettingsCustomization: FC = () => {
|
||||
const selected_device = parseInt(event.target.value, 10);
|
||||
setSelectedDevice(selected_device);
|
||||
setNumChanges(0);
|
||||
fetchDeviceEntities(devices?.devices[selected_device].i);
|
||||
void fetchDeviceEntities(devices?.devices[selected_device].i);
|
||||
setRestartNeeded(false);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user