Added rounding to Google Wifi (#8866)

pull/8869/head
Kevin Fronczak 2017-08-06 11:29:52 -04:00 committed by Andrey
parent b655fe6e04
commit 3723f67dc1
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ class GoogleWifiAPI(object):
sensor_value == '0.0.0.0'):
sensor_value = 'Latest'
elif attr_key == ATTR_UPTIME:
sensor_value /= 3600 * 24
sensor_value = round(sensor_value / (3600 * 24), 2)
elif attr_key == ATTR_LAST_RESTART:
last_restart = (
dt.now() - timedelta(seconds=sensor_value))