mirror of
https://github.com/tsightler/ring-mqtt.git
synced 2025-10-17 06:10:41 +08:00

* 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
12 lines
189 B
JavaScript
12 lines
189 B
JavaScript
class Utils
|
|
{
|
|
|
|
// Simple sleep function for various required delays
|
|
sleep(sec) {
|
|
return new Promise(res => setTimeout(res, sec*1000))
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = new Utils()
|