Merge pull request #67 from mijoharas/feature-fewer-significant-figures-in-sensors
Remove decimal places for sensors.
This commit is contained in:
commit
75ce28ddc0
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class Module(bumblebee.engine.Module):
|
||||||
matching_temp = self._pattern.findall(temperatures)
|
matching_temp = self._pattern.findall(temperatures)
|
||||||
temperature = "unknown"
|
temperature = "unknown"
|
||||||
if matching_temp:
|
if matching_temp:
|
||||||
temperature = matching_temp[self._match_number]
|
temperature = int(float(matching_temp[self._match_number]))
|
||||||
|
|
||||||
return temperature
|
return temperature
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue