Skip to content

Commit

Permalink
maintenance: engine versions + deps
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 committed Jul 23, 2024
1 parent 14fd977 commit 4bda802
Show file tree
Hide file tree
Showing 6 changed files with 1,041 additions and 413 deletions.
2 changes: 1 addition & 1 deletion lib/connection/http.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import axios from 'axios';
import jwtDecode from 'jwt-decode';
import { jwtDecode } from 'jwt-decode';
import platformConsts from '../utils/constants.js';
import { sleep } from '../utils/functions.js';
import platformLang from '../utils/lang-en.js';
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createRequire } from 'module';
import { createRequire } from 'node:module';
import flumePlatform from './platform.js';

const require = createRequire(import.meta.url);
Expand Down
2 changes: 1 addition & 1 deletion lib/platform.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createRequire } from 'module';
import { createRequire } from 'node:module';
import httpClient from './connection/http.js';
import deviceLeakSensor from './device/leak-sensor.js';
import platformConsts from './utils/constants.js';
Expand Down
14 changes: 7 additions & 7 deletions lib/utils/custom-chars.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { inherits } from 'util';
import { inherits } from 'node:util';

export default class {
constructor(api) {
Expand All @@ -13,26 +13,26 @@ export default class {
this.TodayUsage = function TodayUsage() {
self.hapChar.call(this, 'Today Usage', self.uuids.todayUsage);
this.setProps({
format: self.hapChar.Formats.UINT32,
perms: [self.hapChar.Perms.READ, self.hapChar.Perms.NOTIFY],
format: api.hap.Formats.UINT32,
perms: [api.hap.Perms.READ, api.hap.Perms.NOTIFY],
unit: 'Gallons',
});
this.value = this.getDefaultValue();
};
this.MonthUsage = function MonthUsage() {
self.hapChar.call(this, 'Month Usage', self.uuids.monthUsage);
this.setProps({
format: self.hapChar.Formats.UINT32,
perms: [self.hapChar.Perms.READ, self.hapChar.Perms.NOTIFY],
format: api.hap.Formats.UINT32,
perms: [api.hap.Perms.READ, api.hap.Perms.NOTIFY],
unit: 'Gallons',
});
this.value = this.getDefaultValue();
};
this.PrevMonthUsage = function PrevMonthUsage() {
self.hapChar.call(this, 'Previous Month', self.uuids.prevMonthUsage);
this.setProps({
format: self.hapChar.Formats.UINT32,
perms: [self.hapChar.Perms.READ, self.hapChar.Perms.NOTIFY],
format: api.hap.Formats.UINT32,
perms: [api.hap.Perms.READ, api.hap.Perms.NOTIFY],
unit: 'Gallons',
});
this.value = this.getDefaultValue();
Expand Down
Loading

0 comments on commit 4bda802

Please sign in to comment.