node-red-contrib-unifi-ultimate 0.1.11 → 1.0.0

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/README.md CHANGED
@@ -15,12 +15,9 @@
15
15
 
16
16
  Control and monitor `UniFi Network`, `UniFi Protect`, and `UniFi Access` from Node-RED without building API requests by hand.
17
17
 
18
- > **Beta notice:** until version `1.0.0`, this package should be considered **BETA** and may include **breaking changes** between releases.
19
- > Please [report issues or feedback](https://github.com/Supergiovane/node-red-contrib-unifi-ultimate/issues) to help improve the package.
20
-
21
18
  [View Changelog](CHANGELOG.md)
22
19
 
23
- <a href="https://www.youtube.com/watch?v=ZOq7M5mgUBk&list=PL9Yh1bjbLAYrWKtMlopN0swuQXbdJ8MFJ">
20
+ <a href="https://www.youtube.com/playlist?list=PL9Yh1bjbLAYrWKtMlopN0swuQXbdJ8MFJ">
24
21
  <img src="resources/logos/youtube-icon.svg" alt="YouTube" width="24" height="18" align="absmiddle">
25
22
  Watch news and tutorials on YouTube
26
23
  <br/>
@@ -513,13 +513,13 @@ module.exports = function(RED) {
513
513
  }
514
514
 
515
515
  node.doorbellLogPollCursor = Math.floor(Date.now() / 1000) - DOORBELL_LOG_POLL_LOOKBACK_SECONDS;
516
- node.runDoorbellLogPoll();
516
+ node.runDoorbellLogPoll().catch((error) => {
517
+ node.warn(`Access doorbell log initial poll failed: ${error && error.message ? error.message : error}`);
518
+ });
517
519
  node.doorbellLogPollTimer = setInterval(() => {
518
- try {
519
- node.runDoorbellLogPoll();
520
- } catch (error) {
520
+ node.runDoorbellLogPoll().catch((error) => {
521
521
  node.warn(`Access doorbell log poll timer failed: ${error && error.message ? error.message : error}`);
522
- }
522
+ });
523
523
  }, DOORBELL_LOG_POLL_INTERVAL_MS);
524
524
  };
525
525
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-unifi-ultimate",
3
- "version": "0.1.11",
3
+ "version": "1.0.0",
4
4
  "description": "Node-RED nodes for Ubiquiti UniFi integrations, including UniFi Protect, UniFi Access, and UniFi Network.",
5
5
  "files": [
6
6
  "nodes/",
@@ -60,4 +60,4 @@
60
60
  "bugs": {
61
61
  "url": "https://github.com/Supergiovane/node-red-contrib-unifi-ultimate/issues"
62
62
  }
63
- }
63
+ }