Merge 4.0.0 Release (#101)

* Add Home Assistant Device Model support
* Major refactor of device discovery and republish to simplify code
* Add support for alarm status
* Implement new topic heirarchy
* Add support for keypad status monitoring
* Misc bugfixes from refactor
* Remove legacy attribute support
* Display chirps only for security-keypad
* Add support for panic buttons
* Must be explicitly enabled with "enable_panic"
* Addon auto configuration
* Enhance web based token generator
* Improve error handling for token generation
* Add support for Home Assistant device registry for cameras
This commit is contained in:
tsightler
2020-09-04 23:25:14 -04:00
committed by GitHub
parent 485b58bb96
commit 796d099cba
32 changed files with 1891 additions and 4539 deletions

View File

@@ -6,11 +6,6 @@ class Utils
return new Promise(res => setTimeout(res, sec*1000))
}
// Check if devices list from location has an alarm panel (could be only camera/lights)
hasAlarm(devices) {
return (devices.filter(device => device.data.deviceType === 'security-panel') ? true : false)
}
}
module.exports = new Utils()