mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
move multiple instances setting to HA section
This commit is contained in:
@@ -162,10 +162,6 @@ const MqttSettingsForm: FC = () => {
|
|||||||
</ValidatedTextField>
|
</ValidatedTextField>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
<BlockFormControlLabel
|
|
||||||
control={<Checkbox name="multiple_instances" checked={data.multiple_instances} onChange={updateFormValue} />}
|
|
||||||
label={LL.MQTT_MULTIPLE_INSTANCES()}
|
|
||||||
/>
|
|
||||||
<BlockFormControlLabel
|
<BlockFormControlLabel
|
||||||
control={<Checkbox name="clean_session" checked={data.clean_session} onChange={updateFormValue} />}
|
control={<Checkbox name="clean_session" checked={data.clean_session} onChange={updateFormValue} />}
|
||||||
label={LL.MQTT_CLEAN_SESSION()}
|
label={LL.MQTT_CLEAN_SESSION()}
|
||||||
@@ -224,17 +220,25 @@ const MqttSettingsForm: FC = () => {
|
|||||||
/>
|
/>
|
||||||
</Grid>
|
</Grid>
|
||||||
{data.ha_enabled && (
|
{data.ha_enabled && (
|
||||||
<Grid item sx={{ pb: 3 }}>
|
<>
|
||||||
<ValidatedTextField
|
<Grid item>
|
||||||
name="discovery_prefix"
|
<BlockFormControlLabel
|
||||||
label={LL.MQTT_PUBLISH_TEXT_4()}
|
control={<Checkbox name="multiple_instances" checked={data.multiple_instances} onChange={updateFormValue} />}
|
||||||
fullWidth
|
label={LL.MQTT_MULTIPLE_INSTANCES()}
|
||||||
variant="outlined"
|
/>
|
||||||
value={data.discovery_prefix}
|
</Grid>
|
||||||
onChange={updateFormValue}
|
<Grid item sx={{ pb: 3 }}>
|
||||||
size="small"
|
<ValidatedTextField
|
||||||
/>
|
name="discovery_prefix"
|
||||||
</Grid>
|
label={LL.MQTT_PUBLISH_TEXT_4()}
|
||||||
|
fullWidth
|
||||||
|
variant="outlined"
|
||||||
|
value={data.discovery_prefix}
|
||||||
|
onChange={updateFormValue}
|
||||||
|
size="small"
|
||||||
|
/>
|
||||||
|
</Grid>
|
||||||
|
</>
|
||||||
)}
|
)}
|
||||||
</Grid>
|
</Grid>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user