Skip to content

Commit

Permalink
Fix warnings in documentation generator
Browse files Browse the repository at this point in the history
  • Loading branch information
itavero committed Jan 5, 2025
1 parent 18ce263 commit 866c508
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion generate-docs.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env sh

# Determine vesrion of zigbee-herdsman-converters based on latest Zigbee2MQTT release
# Determine version of zigbee-herdsman-converters based on latest Zigbee2MQTT release
Z2M_VERSION=$(npm view zigbee2mqtt@latest version)
HERDSMAN_VERSION=$(npm view "zigbee2mqtt@$Z2M_VERSION" dependencies.zigbee-herdsman-converters)

Expand Down
3 changes: 2 additions & 1 deletion src/docgen/docs_accessory.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Controller, Service } from 'homebridge';
import { BasicAccessory, ServiceHandler } from '../converters/interfaces';
import { BasicLogger } from '../logger';
import { sanitizeAccessoryName } from '../helpers';

export class DocsAccessory implements BasicAccessory {
readonly log: BasicLogger = {
Expand Down Expand Up @@ -44,7 +45,7 @@ export class DocsAccessory implements BasicAccessory {
if (subType !== undefined) {
name += ` ${subType}`;
}
return name;
return sanitizeAccessoryName(name);
}

getServicesAndCharacteristics(): Map<string, string[]> {
Expand Down

0 comments on commit 866c508

Please sign in to comment.