Skip to content

Commit

Permalink
Fix displaying resolution of workinghours sensor (#521)
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Dec 5, 2016
1 parent 4bd7598 commit 1c0effe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/frontend/javascripts/entity.js
Expand Up @@ -538,7 +538,7 @@ Entity.prototype.getDOMDetails = function(edit) {
break;

case 'resolution':
prefix = (this.definition.scale == 1000) ? 'k' : ''; // per Wh or kWh
prefix = (this.getUnit() && this.definition.scale == 1000) ? 'k' : ''; // per Wh or kWh
value += '/' + prefix + vz.wui.formatConsumptionUnit(this.getUnit());
break;

Expand Down

0 comments on commit 1c0effe

Please sign in to comment.