@uboness/homebridge-mqtt 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
4
 
5
+ ## [0.2.4](https://github.com/uboness/{{name}}/compare/v0.2.3...v0.2.4) (2025-09-13)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * changed `lockTargetState` to use EnumValue instead of ZeroOneValue ([b251205](https://github.com/uboness/{{name}}/commit/b251205b4195d020f790f15844ae3a79aaad0831))
11
+
5
12
  ## [0.2.3](https://github.com/uboness/{{name}}/compare/v0.2.2...v0.2.3) (2025-09-12)
6
13
 
7
14
 
@@ -1,6 +1,8 @@
1
- import { ZeroOneValue } from './archetype';
1
+ import { EnumValue } from './archetype';
2
+ declare const values: EnumValue.ValuesResolver;
2
3
  export type LockTargetState = {
3
- lockTargetState: ZeroOneValue.ReadWriteConfig<'secured', 'unsecured'>;
4
+ lockTargetState: EnumValue.ReadWriteConfig<typeof values>;
4
5
  };
5
- export declare const lockTargetState: import(".").CharacteristicConfigurator<ZeroOneValue.ReadWriteConfig<"secured", "unsecured"> | ZeroOneValue.ReadOnlyConfig<"secured", "unsecured"> | ZeroOneValue.WriteOnlyConfig<"secured", "unsecured">>;
6
+ export declare const lockTargetState: import(".").CharacteristicConfigurator<EnumValue.ReadWriteConfig<EnumValue.ValuesResolver>>;
7
+ export {};
6
8
  //# sourceMappingURL=lockTargetState.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"lockTargetState.d.ts","sourceRoot":"","sources":["../../../src/service/characteristic/lockTargetState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,MAAM,eAAe,GAAG;IAC1B,eAAe,EAAE,YAAY,CAAC,eAAe,CAAC,SAAS,EAAE,WAAW,CAAC,CAAA;CACxE,CAAA;AAED,eAAO,MAAM,eAAe,2MAG1B,CAAC"}
1
+ {"version":3,"file":"lockTargetState.d.ts","sourceRoot":"","sources":["../../../src/service/characteristic/lockTargetState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,QAAA,MAAM,MAAM,EAAE,SAAS,CAAC,cAGtB,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG;IAC1B,eAAe,EAAE,SAAS,CAAC,eAAe,CAAC,OAAO,MAAM,CAAC,CAAA;CAC5D,CAAA;AAED,eAAO,MAAM,eAAe,6FAAsG,CAAC"}
@@ -2,8 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.lockTargetState = void 0;
4
4
  const archetype_1 = require("./archetype");
5
- exports.lockTargetState = archetype_1.ZeroOneValue.readWrite('lockTargetState', platform => platform.Characteristic.LockTargetState, {
6
- onKey: 'secured',
7
- offKey: 'unsecured'
5
+ const values = platform => ({
6
+ unsecured: platform.Characteristic.LockTargetState.UNSECURED,
7
+ secured: platform.Characteristic.LockTargetState.SECURED
8
8
  });
9
+ exports.lockTargetState = archetype_1.EnumValue.readWrite('lockTargetState', values, platform => platform.Characteristic.LockTargetState);
9
10
  //# sourceMappingURL=lockTargetState.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"lockTargetState.js","sourceRoot":"","sources":["../../../src/service/characteristic/lockTargetState.ts"],"names":[],"mappings":";;;AAAA,2CAA2C;AAM9B,QAAA,eAAe,GAAG,wBAAY,CAAC,SAAS,CAAC,iBAAiB,EAAE,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,cAAc,CAAC,eAAe,EAAE;IAC1H,KAAK,EAAE,SAAS;IAChB,MAAM,EAAE,WAAW;CACtB,CAAC,CAAC"}
1
+ {"version":3,"file":"lockTargetState.js","sourceRoot":"","sources":["../../../src/service/characteristic/lockTargetState.ts"],"names":[],"mappings":";;;AAAA,2CAAwC;AAGxC,MAAM,MAAM,GAA6B,QAAQ,CAAC,EAAE,CAAC,CAAC;IAClD,SAAS,EAAE,QAAQ,CAAC,cAAc,CAAC,eAAe,CAAC,SAAS;IAC5D,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC,eAAe,CAAC,OAAO;CAC3D,CAAC,CAAC;AAMU,QAAA,eAAe,GAAG,qBAAS,CAAC,SAAS,CAAC,iBAAiB,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,cAAc,CAAC,eAAe,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uboness/homebridge-mqtt",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "author": "uboness",
5
5
  "publishConfig": {
6
6
  "@uboness:registry": "https://registry.npmjs.org "