Skip to content

Commit

Permalink
rename new method
Browse files Browse the repository at this point in the history
  • Loading branch information
ccutrer committed Jan 9, 2024
1 parent 1edb6ab commit ed4dad4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/lib/Gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ export default class Gateway {
// Set device information using node info
payload.device = this._deviceInfo(node, nodeName)

this._availabilityConfig(node, payload)
this.setDiscoveryAvailability(node, payload)

hassDevice.object_id = utils
.sanitizeTopic(hassDevice.object_id, true)
Expand Down Expand Up @@ -1673,7 +1673,7 @@ export default class Gateway {
payload.command_topic = setTopic || getTopic + '/set'
}

this._availabilityConfig(node, payload)
this.setDiscoveryAvailability(node, payload)

if (
['binary_sensor', 'sensor', 'lock', 'climate', 'fan'].includes(
Expand Down Expand Up @@ -2370,7 +2370,7 @@ export default class Gateway {
}
}

private _availabilityConfig(
private setDiscoveryAvailability(
node: ZUINode,
payload: { [key: string]: any },
) {
Expand Down

0 comments on commit ed4dad4

Please sign in to comment.