mirror of
https://github.com/tsightler/ring-mqtt.git
synced 2025-10-19 07:05:15 +08:00
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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user