Skip to content
Snippets Groups Projects
Commit eff334a1 authored by Paulus Schoutsen's avatar Paulus Schoutsen Committed by Paulus Schoutsen
Browse files

Remove relative time from state machine (#15560)

parent b3bed7fb
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,6 @@ SENSOR_TYPES = { ...@@ -51,7 +51,6 @@ SENSOR_TYPES = {
'rf_status_lvl': ['Radio_lvl', '', 'mdi:signal', None], 'rf_status_lvl': ['Radio_lvl', '', 'mdi:signal', None],
'wifi_status': ['Wifi', '', 'mdi:wifi', None], 'wifi_status': ['Wifi', '', 'mdi:wifi', None],
'wifi_status_lvl': ['Wifi_lvl', 'dBm', 'mdi:wifi', None], 'wifi_status_lvl': ['Wifi_lvl', 'dBm', 'mdi:wifi', None],
'lastupdated': ['Last Updated', 's', 'mdi:timer', None],
} }
MODULE_SCHEMA = vol.Schema({ MODULE_SCHEMA = vol.Schema({
...@@ -286,8 +285,6 @@ class NetAtmoSensor(Entity): ...@@ -286,8 +285,6 @@ class NetAtmoSensor(Entity):
self._state = "High" self._state = "High"
elif data['wifi_status'] <= 55: elif data['wifi_status'] <= 55:
self._state = "Full" self._state = "Full"
elif self.type == 'lastupdated':
self._state = int(time() - data['When'])
class NetAtmoData(object): class NetAtmoData(object):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment