Skip to content

Commit

Permalink
fix: hide rpm in temperature_fans without tachometer_pin (#1489)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteyou authored Jul 27, 2023
1 parent 0b47a80 commit e929c7c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,10 @@ export default class TemperaturePanelListItem extends Mixins(BaseMixin) {
}
get rpm() {
if (!('rpm' in this.printerObject)) return null
const rpm = this.printerObject.rpm ?? null
// return null when rpm doesn't exist
if (rpm === null) return null
return parseInt(this.printerObject.rpm)
}
Expand Down

0 comments on commit e929c7c

Please sign in to comment.