Skip to content

Commit

Permalink
fix(typo): docgen (#2238)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rotzbua authored Oct 2, 2023
1 parent 62ed251 commit 4effca4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docgen/device_page_exposes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion docgen/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 4effca4

Please sign in to comment.