mirror of
https://github.com/home-assistant/core.git
synced 2025-07-07 13:27:09 +00:00
Remove relative time from state machine (#15560)
This commit is contained in:
parent
a0193e8e42
commit
ea18e06b08
@ -51,7 +51,6 @@ SENSOR_TYPES = {
|
||||
'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({
|
||||
@ -286,8 +285,6 @@ class NetAtmoSensor(Entity):
|
||||
self._state = "High"
|
||||
elif data['wifi_status'] <= 55:
|
||||
self._state = "Full"
|
||||
elif self.type == 'lastupdated':
|
||||
self._state = int(time() - data['When'])
|
||||
|
||||
|
||||
class NetAtmoData(object):
|
||||
|
Loading…
x
Reference in New Issue
Block a user