Add empty unit to systemmonitor load averages (#12900)

Adds an empty unit to load averages reported by the systemmonitor
component in order to correctly identify the state as numeric.

A similar workaroud to this is already used for packet counts in the
same component.

Re #11022
This commit is contained in:
Dan Nixon 2018-03-05 02:41:27 +00:00 committed by Paulus Schoutsen
parent 7c7da9df05
commit 326241d9d8

View File

@ -29,9 +29,9 @@ SENSOR_TYPES = {
'ipv4_address': ['IPv4 address', '', 'mdi:server-network'],
'ipv6_address': ['IPv6 address', '', 'mdi:server-network'],
'last_boot': ['Last boot', '', 'mdi:clock'],
'load_15m': ['Load (15m)', '', 'mdi:memory'],
'load_1m': ['Load (1m)', '', 'mdi:memory'],
'load_5m': ['Load (5m)', '', 'mdi:memory'],
'load_15m': ['Load (15m)', ' ', 'mdi:memory'],
'load_1m': ['Load (1m)', ' ', 'mdi:memory'],
'load_5m': ['Load (5m)', ' ', 'mdi:memory'],
'memory_free': ['Memory free', 'MiB', 'mdi:memory'],
'memory_use': ['Memory use', 'MiB', 'mdi:memory'],
'memory_use_percent': ['Memory use (percent)', '%', 'mdi:memory'],