Skip to content

Commit

Permalink
Remove relative time from state machine (#15560)
Browse files Browse the repository at this point in the history
  • Loading branch information
balloob authored Jul 19, 2018
1 parent a0193e8 commit ea18e06
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions homeassistant/components/sensor/netatmo.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
'rf_status_lvl': ['Radio_lvl', '', 'mdi:signal', None],
'wifi_status': ['Wifi', '', 'mdi:wifi', None],
'wifi_status_lvl': ['Wifi_lvl', 'dBm', 'mdi:wifi', None],
'lastupdated': ['Last Updated', 's', 'mdi:timer', None],
}

MODULE_SCHEMA = vol.Schema({
Expand Down Expand Up @@ -286,8 +285,6 @@ def update(self):
self._state = "High"
elif data['wifi_status'] <= 55:
self._state = "Full"
elif self.type == 'lastupdated':
self._state = int(time() - data['When'])


class NetAtmoData(object):
Expand Down

0 comments on commit ea18e06

Please sign in to comment.