mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 18:27:09 +00:00
Fix pylint issue
This commit is contained in:
parent
f1fed78992
commit
4eacea32da
@ -120,7 +120,7 @@ class GlancesSensor(Entity):
|
|||||||
return round(value['fs'][0]['free'] / 1024**3, 1)
|
return round(value['fs'][0]['free'] / 1024**3, 1)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
return round((value['fs'][0]['size'] -
|
return round((value['fs'][0]['size'] -
|
||||||
value['fs'][0]['used']) /1024**3, 1)
|
value['fs'][0]['used']) / 1024**3, 1)
|
||||||
elif self.type == 'memory_use_percent':
|
elif self.type == 'memory_use_percent':
|
||||||
return value['mem']['percent']
|
return value['mem']['percent']
|
||||||
elif self.type == 'memory_use':
|
elif self.type == 'memory_use':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user