canBeOpened() {
    if (this.locked) {
      return false;
    }

    if (this.params.designMode) {
      return true;
    }

    // Check for date in december, keep open whole december
    const date = new Date();
    return date.getMonth() === 11 && date.getDate() >= this.params.day;
  }
/**
   * Determine whether the door can be opened.
   * @return {boolean} True, if door can be opened. Else false.
   */
Determine whether the door can be opened.
@return {boolean} True, if door can be opened. Else false.
Determine whether the door can be opened . @return { boolean } True if door can be opened . Else false .
canBeOpened() {
    if (this.locked) {
      return false;
    }
    if (this.params.designMode) {
      return true;
    }
    const date = new Date();
    return date.getMonth() === 11 && date.getDate() >= this.params.day;
  }
canBeOpened ( ) { if ( this . locked ) { return false ; } if ( this . params . designMode ) { return true ; } const date = new Date ( ) ; return date . getMonth ( ) === 11 && date . getDate ( ) >= this . params . day ; }
Determine whether the door can be opened.
Determine whether the door can be opened .
// Check for date in december, keep open whole december