don't auto-install if on Tasmota

This commit is contained in:
proddy
2025-01-11 19:02:15 +01:00
parent ae258a75d9
commit 153dd19fc6

View File

@@ -60,8 +60,10 @@ const Version = () => {
send: loadData, send: loadData,
error error
} = useRequest(SystemApi.readSystemStatus).onSuccess((event) => { } = useRequest(SystemApi.readSystemStatus).onSuccess((event) => {
// older version of EMS-ESP didn't have the psram set, so we can't do an OTA upgrade // older version of EMS-ESP on 4MB boards, can't use OTA because of SSL support in HttpClient
setDownloadOnly(event.data.psram === undefined); if (event.data.arduino_version.startsWith('Tasmota')) {
setDownloadOnly(true);
}
setUsingDevVersion(event.data.emsesp_version.includes('dev')); setUsingDevVersion(event.data.emsesp_version.includes('dev'));
}); });
@@ -252,7 +254,12 @@ const Version = () => {
<Typography color="secondary">Platform</Typography> <Typography color="secondary">Platform</Typography>
</Grid> </Grid>
<Grid size={{ xs: 8, md: 10 }}> <Grid size={{ xs: 8, md: 10 }}>
<Typography>{getPlatform()}</Typography> <Typography>
{getPlatform()}
<Typography variant="caption">
&nbsp; &#40;{data.psram ? '+PSRAM' : '-PSRAM'}&#41;
</Typography>
</Typography>
</Grid> </Grid>
<Grid size={{ xs: 4, md: 2 }}> <Grid size={{ xs: 4, md: 2 }}>