Skip to content

Commit

Permalink
support attribute 'showScheduleSetup'
Browse files Browse the repository at this point in the history
  • Loading branch information
HGlab01 authored Nov 25, 2021
1 parent e4b0ccb commit b6c9b4e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ In general vaules are now NULL if API sends NULL or just nothing. In v0.2.x some
Placeholder for the next version (at the beginning of the line):
### __WORK IN PROGRESS__
-->
### __WORK IN PROGRESS__
* (HGlab01) support attribute 'showScheduleSetup'

### 0.3.11 (2021-11-19)
* (HGlab01) support attributes 'showSwitchToAutoGeofencingButton', 'showHomePresenceSwitchButton', 'scheduleIsDefault' and 'additionalConsents'
* (HGlab01) enhance error messages if API-call fails
Expand Down
5 changes: 5 additions & 0 deletions lib/state_attr.js
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,11 @@ const state_attrb = {
'role': 'info',
'type': 'boolean'
},
'showScheduleSetup': {
'name': 'Show Schedule Setup',
'role': 'info',
'type': 'boolean'
},
'showSwitchToAutoGeofencingButton': {
'name': 'Show Switch To AutoGeofencing Button',
'role': 'info',
Expand Down
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ class Tado extends utils.Adapter {
}

async errorHandling(error) {
if (error.message && (error.message.includes('Login failed!') || error.message.includes('ETIMEDOUT') || error.message.includes('No internet connection detected!'))) return;
if (error.message && (error.message.includes('Login failed!') || error.message.includes('ETIMEDOUT') || error.message.includes('EAI_AGAIN') || error.message.includes('No internet connection detected!'))) return;
if (this.log.level != 'debug' && this.log.level != 'silly') {
if (this.supportsFeature && this.supportsFeature('PLUGINS')) {
const sentryInstance = this.getPluginInstance('sentry');
Expand Down

0 comments on commit b6c9b4e

Please sign in to comment.