formatting

This commit is contained in:
proddy
2022-02-20 13:38:42 +01:00
parent fcab3b1d46
commit cffc44b471
2 changed files with 6 additions and 5 deletions

View File

@@ -193,8 +193,10 @@ const MqttSettingsForm: FC = () => {
{data.publish_single && ( {data.publish_single && (
<Grid item> <Grid item>
<BlockFormControlLabel <BlockFormControlLabel
control={<Checkbox name="publish_single2cmd" checked={data.publish_single2cmd} onChange={updateFormValue} />} control={
label="publish to command topics (ioBroker)" <Checkbox name="publish_single2cmd" checked={data.publish_single2cmd} onChange={updateFormValue} />
}
label="Publish to command topics (ioBroker)"
/> />
</Grid> </Grid>
)} )}
@@ -203,14 +205,14 @@ const MqttSettingsForm: FC = () => {
<Grid item> <Grid item>
<BlockFormControlLabel <BlockFormControlLabel
control={<Checkbox name="ha_enabled" checked={data.ha_enabled} onChange={updateFormValue} />} control={<Checkbox name="ha_enabled" checked={data.ha_enabled} onChange={updateFormValue} />}
label="Enable MQTT Discovery (for Home Assistant, Domoticz)" label="Enable MQTT Discovery (Home Assistant, Domoticz)"
/> />
</Grid> </Grid>
{data.ha_enabled && ( {data.ha_enabled && (
<Grid item xs={6}> <Grid item xs={6}>
<ValidatedTextField <ValidatedTextField
name="discovery_prefix" name="discovery_prefix"
label="Prefix for the Discovery topic" label="Prefix for the Discovery topics"
fullWidth fullWidth
variant="outlined" variant="outlined"
value={data.discovery_prefix} value={data.discovery_prefix}

View File

@@ -834,7 +834,6 @@ const DashboardData: FC = () => {
InputProps={{ InputProps={{
startAdornment: <InputAdornment position="start">%</InputAdornment> startAdornment: <InputAdornment position="start">%</InputAdornment>
}} }}
/> />
</Grid> </Grid>
</> </>