Skip to content

Commit 87b5689

Browse files
committed
Fixed possible fakegato crash
1 parent ebfa09a commit 87b5689

8 files changed

Lines changed: 12 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to homebridge-dummy will be documented in this file.
44

5+
## 1.5.17-beta.0 ()
6+
7+
### Fixed
8+
- Potential crash on launch
9+
510
## 1.5.16 (2026-05-25)
611

712
### Added
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
'use strict';
33

44
const Format = require('util').format;
5-
const FakeGatoTimer = require('./fakegato-timer').FakeGatoTimer;
6-
const FakeGatoStorage = require('./fakegato-storage').FakeGatoStorage;
5+
const FakeGatoTimer = require('./fakegato-timer.cjs').FakeGatoTimer;
6+
const FakeGatoStorage = require('./fakegato-storage.cjs').FakeGatoStorage;
77

88
const EPOCH_OFFSET = 978307200;
99

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"displayName": "Homebridge Easy MQTT",
55
"description": "Homebridge plugin for MQTT devices",
66
"type": "module",
7-
"version": "1.5.16",
7+
"version": "1.5.17-beta.0",
88
"homepage": "https://github.com/mpatfield/homebridge-easy-mqtt#readme",
99
"repository": {
1010
"type": "git",

src/model/history.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { F_OK } from 'constants';
2-
import fakegato, { HistoryServiceProvider, HistoryService } from 'fakegato-history';
2+
import fakegato, { HistoryServiceProvider, HistoryService } from 'fakegato-history/fakegato-history.cjs';
33
import { access, unlink } from 'fs/promises';
44
import { API, CharacteristicValue, Nullable, PlatformAccessory } from 'homebridge';
55
import path from 'path';

src/types/fakegato-history/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint-disable @typescript-eslint/no-explicit-any */
2-
declare module 'fakegato-history' {
2+
declare module 'fakegato-history/fakegato-history.cjs' {
33

44
import { API, PlatformAccessory } from 'homebridge';
55

0 commit comments

Comments
 (0)