mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
formatting
This commit is contained in:
@@ -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}
|
||||||
|
|||||||
@@ -834,7 +834,6 @@ const DashboardData: FC = () => {
|
|||||||
InputProps={{
|
InputProps={{
|
||||||
startAdornment: <InputAdornment position="start">%</InputAdornment>
|
startAdornment: <InputAdornment position="start">%</InputAdornment>
|
||||||
}}
|
}}
|
||||||
|
|
||||||
/>
|
/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in New Issue
Block a user