mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +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)
|
||||
except KeyError:
|
||||
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':
|
||||
return value['mem']['percent']
|
||||
elif self.type == 'memory_use':
|
||||
|
Loading…
x
Reference in New Issue
Block a user