Skip to content

Commit

Permalink
Fix crash using wrong function name
Browse files Browse the repository at this point in the history
  • Loading branch information
Joolee committed Feb 28, 2022
1 parent 1fef412 commit 054934c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SensorDriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ module.exports = class SensorDriver extends GeneralDriver {

onPair(socket) {
socket.on('list_devices', (data, callback) => {
let unitsTodo = Homey.app.units.getUnits().length;
let unitsTodo = Homey.app.units.getAll().length;
let tasks = [];
let errors = [];

Expand Down

0 comments on commit 054934c

Please sign in to comment.