diff --git a/docgen/device_page_exposes.ts b/docgen/device_page_exposes.ts index e9008620471b7..aebff16fcdacf 100644 --- a/docgen/device_page_exposes.ts +++ b/docgen/device_page_exposes.ts @@ -164,11 +164,11 @@ function getExposeDocs(expose, definition) { lines.push(`- \`brightness\`: To control the brightness publish a message to topic \`zigbee2mqtt/FRIENDLY_NAME/set\` with payload \`{"${brightness.property}": VALUE}\` where \`VALUE\` is a number between \`${brightness.value_min}\` and \`${brightness.value_max}\`. To read the brightness send a message to \`zigbee2mqtt/FRIENDLY_NAME/get\` with payload \`{"${brightness.property}": ""}\`.`); } if (colorTemp) { - const presets = `Besides the numeric values the following values are accepected: ${colorTemp.presets.map((p) => `\`${p.name}\``).join(', ')}.`; + const presets = `Besides the numeric values the following values are accepted: ${colorTemp.presets.map((p) => `\`${p.name}\``).join(', ')}.`; lines.push(`- \`color_temp\`: To control the color temperature (in reciprocal megakelvin a.k.a. mired scale) publish a message to topic \`zigbee2mqtt/FRIENDLY_NAME/set\` with payload \`{"${colorTemp.property}": VALUE}\` where \`VALUE\` is a number between \`${colorTemp.value_min}\` and \`${colorTemp.value_max}\`, the higher the warmer the color. To read the color temperature send a message to \`zigbee2mqtt/FRIENDLY_NAME/get\` with payload \`{"${colorTemp.property}": ""}\`. ${presets}`); } if (colorTempStartup) { - const presets = `Besides the numeric values the following values are accepected: ${colorTempStartup.presets.map((p) => `\`${p.name}\``).join(', ')}.`; + const presets = `Besides the numeric values the following values are accepted: ${colorTempStartup.presets.map((p) => `\`${p.name}\``).join(', ')}.`; lines.push(`- \`color_temp_startup\`: To set the startup color temperature (in reciprocal megakelvin a.k.a. mired scale) publish a message to topic \`zigbee2mqtt/FRIENDLY_NAME/set\` with payload \`{"${colorTempStartup.property}": VALUE}\` where \`VALUE\` is a number between \`${colorTempStartup.value_min}\` and \`${colorTempStartup.value_max}\`, the higher the warmer the color. To read the startup color temperature send a message to \`zigbee2mqtt/FRIENDLY_NAME/get\` with payload \`{"${colorTempStartup.property}": ""}\`. ${presets}`); } if (colorXY) { diff --git a/docgen/utils.ts b/docgen/utils.ts index c4d2e9ae4a13a..cbfdbf77380cd 100644 --- a/docgen/utils.ts +++ b/docgen/utils.ts @@ -55,7 +55,7 @@ export function getAddedAt(deviceContent: string) { return new Date().toISOString(); } -// For this site: all defintions are the definitions + whitelabels with fingerprint +// For this site: all definitions are the definitions + whitelabels with fingerprint // Whitelabels that have a fingerprint will get a separate page and will not // appear as a whitelabel on the original device page const allDefinitionsTemp = [...definitions];