Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#301 Initial fixes to make the plugin work with Homebridge 2.0 Two basic changes: 1. Use of enums off the Characteristic class is no longer supported: Instead of const Units = Characteristic.Units; you will need to use const Units = api.hap.Units; Instead of const Formats = Characteristic.Formats; you will need to use const Formats = api.hap.Formats; Instead of const Perms = Characteristic.Perms; you will need to use const Perms = api.hap.Perms; 2. Change custom characteristics to be classes with constructors, rather than using the inherits() functionality.
- Loading branch information