Skip to content

Commit

Permalink
fix: Fixes in the PTVO converter (#7554)
Browse files Browse the repository at this point in the history
Co-authored-by: ptvoinfo <[email protected]>
  • Loading branch information
ptvoinfo and ptvoinfo authored May 26, 2024
1 parent 5f4d72c commit 4dc88a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/devices/custom_devices_diy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,10 @@ function ptvoAddStandardExposes(endpoint: Zh.Endpoint, expose: Expose[], options
expose.push(e.illuminance().withEndpoint(epName));
}
if (endpoint.supportsInputCluster('msCO2')) {
expose.push(e.co2().withEndpoint(epName));
expose.push(e.co2());
}
if (endpoint.supportsInputCluster('pm25Measurement')) {
expose.push(e.pm25().withEndpoint(epName));
expose.push(e.pm25());
}
if (endpoint.supportsInputCluster('haElectricalMeasurement')) {
// haElectricalMeasurement may expose only one value defined explicitly
Expand Down

0 comments on commit 4dc88a7

Please sign in to comment.