Add icon translations to Systemmonitor (#112300)
* Add icon translations to Systemmonitor * Add icon translations to Systemmonitor
This commit is contained in:
parent
33c1e7d45d
commit
0b4fafddbc
4 changed files with 51 additions and 41 deletions
|
@ -3,7 +3,6 @@
|
|||
ReadOnlyDict({
|
||||
'device_class': 'data_size',
|
||||
'friendly_name': 'System Monitor Disk free /',
|
||||
'icon': 'mdi:harddisk',
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
'unit_of_measurement': <UnitOfInformation.GIBIBYTES: 'GiB'>,
|
||||
})
|
||||
|
@ -15,7 +14,6 @@
|
|||
ReadOnlyDict({
|
||||
'device_class': 'data_size',
|
||||
'friendly_name': 'System Monitor Disk free /media/share',
|
||||
'icon': 'mdi:harddisk',
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
'unit_of_measurement': <UnitOfInformation.GIBIBYTES: 'GiB'>,
|
||||
})
|
||||
|
@ -26,7 +24,6 @@
|
|||
# name: test_sensor[System Monitor Disk usage / - attributes]
|
||||
ReadOnlyDict({
|
||||
'friendly_name': 'System Monitor Disk usage /',
|
||||
'icon': 'mdi:harddisk',
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
'unit_of_measurement': '%',
|
||||
})
|
||||
|
@ -37,7 +34,6 @@
|
|||
# name: test_sensor[System Monitor Disk usage /home/notexist/ - attributes]
|
||||
ReadOnlyDict({
|
||||
'friendly_name': 'System Monitor Disk usage /home/notexist/',
|
||||
'icon': 'mdi:harddisk',
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
'unit_of_measurement': '%',
|
||||
})
|
||||
|
@ -48,7 +44,6 @@
|
|||
# name: test_sensor[System Monitor Disk usage /media/share - attributes]
|
||||
ReadOnlyDict({
|
||||
'friendly_name': 'System Monitor Disk usage /media/share',
|
||||
'icon': 'mdi:harddisk',
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
'unit_of_measurement': '%',
|
||||
})
|
||||
|
@ -60,7 +55,6 @@
|
|||
ReadOnlyDict({
|
||||
'device_class': 'data_size',
|
||||
'friendly_name': 'System Monitor Disk use /',
|
||||
'icon': 'mdi:harddisk',
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
'unit_of_measurement': <UnitOfInformation.GIBIBYTES: 'GiB'>,
|
||||
})
|
||||
|
@ -72,7 +66,6 @@
|
|||
ReadOnlyDict({
|
||||
'device_class': 'data_size',
|
||||
'friendly_name': 'System Monitor Disk use /media/share',
|
||||
'icon': 'mdi:harddisk',
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
'unit_of_measurement': <UnitOfInformation.GIBIBYTES: 'GiB'>,
|
||||
})
|
||||
|
@ -83,7 +76,6 @@
|
|||
# name: test_sensor[System Monitor IPv4 address eth0 - attributes]
|
||||
ReadOnlyDict({
|
||||
'friendly_name': 'System Monitor IPv4 address eth0',
|
||||
'icon': 'mdi:ip-network',
|
||||
})
|
||||
# ---
|
||||
# name: test_sensor[System Monitor IPv4 address eth0 - state]
|
||||
|
@ -92,7 +84,6 @@
|
|||
# name: test_sensor[System Monitor IPv4 address eth1 - attributes]
|
||||
ReadOnlyDict({
|
||||
'friendly_name': 'System Monitor IPv4 address eth1',
|
||||
'icon': 'mdi:ip-network',
|
||||
})
|
||||
# ---
|
||||
# name: test_sensor[System Monitor IPv4 address eth1 - state]
|
||||
|
@ -101,7 +92,6 @@
|
|||
# name: test_sensor[System Monitor IPv6 address eth0 - attributes]
|
||||
ReadOnlyDict({
|
||||
'friendly_name': 'System Monitor IPv6 address eth0',
|
||||
'icon': 'mdi:ip-network',
|
||||
})
|
||||
# ---
|
||||
# name: test_sensor[System Monitor IPv6 address eth0 - state]
|
||||
|
@ -110,7 +100,6 @@
|
|||
# name: test_sensor[System Monitor IPv6 address eth1 - attributes]
|
||||
ReadOnlyDict({
|
||||
'friendly_name': 'System Monitor IPv6 address eth1',
|
||||
'icon': 'mdi:ip-network',
|
||||
})
|
||||
# ---
|
||||
# name: test_sensor[System Monitor IPv6 address eth1 - state]
|
||||
|
@ -159,7 +148,6 @@
|
|||
ReadOnlyDict({
|
||||
'device_class': 'data_size',
|
||||
'friendly_name': 'System Monitor Memory free',
|
||||
'icon': 'mdi:memory',
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
'unit_of_measurement': <UnitOfInformation.MEBIBYTES: 'MiB'>,
|
||||
})
|
||||
|
@ -170,7 +158,6 @@
|
|||
# name: test_sensor[System Monitor Memory usage - attributes]
|
||||
ReadOnlyDict({
|
||||
'friendly_name': 'System Monitor Memory usage',
|
||||
'icon': 'mdi:memory',
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
'unit_of_measurement': '%',
|
||||
})
|
||||
|
@ -182,7 +169,6 @@
|
|||
ReadOnlyDict({
|
||||
'device_class': 'data_size',
|
||||
'friendly_name': 'System Monitor Memory use',
|
||||
'icon': 'mdi:memory',
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
'unit_of_measurement': <UnitOfInformation.MEBIBYTES: 'MiB'>,
|
||||
})
|
||||
|
@ -194,7 +180,6 @@
|
|||
ReadOnlyDict({
|
||||
'device_class': 'data_size',
|
||||
'friendly_name': 'System Monitor Network in eth0',
|
||||
'icon': 'mdi:server-network',
|
||||
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
||||
'unit_of_measurement': <UnitOfInformation.MEBIBYTES: 'MiB'>,
|
||||
})
|
||||
|
@ -206,7 +191,6 @@
|
|||
ReadOnlyDict({
|
||||
'device_class': 'data_size',
|
||||
'friendly_name': 'System Monitor Network in eth1',
|
||||
'icon': 'mdi:server-network',
|
||||
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
||||
'unit_of_measurement': <UnitOfInformation.MEBIBYTES: 'MiB'>,
|
||||
})
|
||||
|
@ -218,7 +202,6 @@
|
|||
ReadOnlyDict({
|
||||
'device_class': 'data_size',
|
||||
'friendly_name': 'System Monitor Network out eth0',
|
||||
'icon': 'mdi:server-network',
|
||||
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
||||
'unit_of_measurement': <UnitOfInformation.MEBIBYTES: 'MiB'>,
|
||||
})
|
||||
|
@ -230,7 +213,6 @@
|
|||
ReadOnlyDict({
|
||||
'device_class': 'data_size',
|
||||
'friendly_name': 'System Monitor Network out eth1',
|
||||
'icon': 'mdi:server-network',
|
||||
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
||||
'unit_of_measurement': <UnitOfInformation.MEBIBYTES: 'MiB'>,
|
||||
})
|
||||
|
@ -285,7 +267,6 @@
|
|||
# name: test_sensor[System Monitor Packets in eth0 - attributes]
|
||||
ReadOnlyDict({
|
||||
'friendly_name': 'System Monitor Packets in eth0',
|
||||
'icon': 'mdi:server-network',
|
||||
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
||||
})
|
||||
# ---
|
||||
|
@ -295,7 +276,6 @@
|
|||
# name: test_sensor[System Monitor Packets in eth1 - attributes]
|
||||
ReadOnlyDict({
|
||||
'friendly_name': 'System Monitor Packets in eth1',
|
||||
'icon': 'mdi:server-network',
|
||||
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
||||
})
|
||||
# ---
|
||||
|
@ -305,7 +285,6 @@
|
|||
# name: test_sensor[System Monitor Packets out eth0 - attributes]
|
||||
ReadOnlyDict({
|
||||
'friendly_name': 'System Monitor Packets out eth0',
|
||||
'icon': 'mdi:server-network',
|
||||
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
||||
})
|
||||
# ---
|
||||
|
@ -315,7 +294,6 @@
|
|||
# name: test_sensor[System Monitor Packets out eth1 - attributes]
|
||||
ReadOnlyDict({
|
||||
'friendly_name': 'System Monitor Packets out eth1',
|
||||
'icon': 'mdi:server-network',
|
||||
'state_class': <SensorStateClass.TOTAL_INCREASING: 'total_increasing'>,
|
||||
})
|
||||
# ---
|
||||
|
@ -366,7 +344,6 @@
|
|||
ReadOnlyDict({
|
||||
'device_class': 'data_size',
|
||||
'friendly_name': 'System Monitor Swap free',
|
||||
'icon': 'mdi:harddisk',
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
'unit_of_measurement': <UnitOfInformation.MEBIBYTES: 'MiB'>,
|
||||
})
|
||||
|
@ -377,7 +354,6 @@
|
|||
# name: test_sensor[System Monitor Swap usage - attributes]
|
||||
ReadOnlyDict({
|
||||
'friendly_name': 'System Monitor Swap usage',
|
||||
'icon': 'mdi:harddisk',
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
'unit_of_measurement': '%',
|
||||
})
|
||||
|
@ -389,7 +365,6 @@
|
|||
ReadOnlyDict({
|
||||
'device_class': 'data_size',
|
||||
'friendly_name': 'System Monitor Swap use',
|
||||
'icon': 'mdi:harddisk',
|
||||
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
|
||||
'unit_of_measurement': <UnitOfInformation.MEBIBYTES: 'MiB'>,
|
||||
})
|
||||
|
|
|
@ -60,7 +60,6 @@ async def test_sensor(
|
|||
"state_class": "measurement",
|
||||
"unit_of_measurement": "MiB",
|
||||
"device_class": "data_size",
|
||||
"icon": "mdi:memory",
|
||||
"friendly_name": "System Monitor Memory free",
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue