Skip to content

Commit

Permalink
fix(get-history): fix backwards compatibility for output location
Browse files Browse the repository at this point in the history
https://github.com/zachowj/node-red-contrib-home-assistant-websocket/com
mit/3154f79a5758c74967742e282660dac1decfbe74#r32270616
  • Loading branch information
zachowj committed Feb 12, 2019
1 parent 38e8a90 commit 8bd6e42
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nodes/get-history/get-history.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ module.exports = function(RED) {
return null;
}

if (this.nodeConfig.output_location === undefined) {
this.nodeConfig.output_location = 'payload';
this.nodeConfig.output_location_type = 'msg';
}

switch (this.nodeConfig.output_type) {
case 'split':
if (results.length === 0) {
Expand Down

0 comments on commit 8bd6e42

Please sign in to comment.