Skip to content

Commit

Permalink
fix(zone): update autocomplete source after new data received
Browse files Browse the repository at this point in the history
  • Loading branch information
zachowj committed Sep 27, 2020
1 parent 3ce55a6 commit a6d6c29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nodes/zone/ui-zone.js
Expand Up @@ -48,6 +48,8 @@ RED.nodes.registerType('ha-zone', {
entities.startsWith('device_tracker.')
);
zones = entities.filter((entities) => entities.startsWith('zone.'));
$entities.find('input').autocomplete('option', 'source', devices);
$zones.find('input').autocomplete('option', 'source', zones);
});
exposeNode.init(this);

Expand Down

0 comments on commit a6d6c29

Please sign in to comment.