This commit is contained in:
G Johansson
2025-08-23 14:55:36 +00:00
parent 6d3b9ce758
commit d8d2cc9995
2 changed files with 13 additions and 13 deletions

View File

@@ -626,8 +626,8 @@ async def async_setup_entry( # noqa: C901
) )
) )
for _arg in coordinator.data.fan_rpm: if _type == "fan_rpm":
if _type == "fan_rpm": for _arg in coordinator.data.fan_rpm:
argument = "" argument = ""
loaded_resources.add(slugify(f"{_type}_{argument}")) loaded_resources.add(slugify(f"{_type}_{argument}"))
entities.append( entities.append(

View File

@@ -10,6 +10,17 @@
# name: test_sensor[System Monitor Battery - state] # name: test_sensor[System Monitor Battery - state]
'93' '93'
# --- # ---
# name: test_sensor[System Monitor Battery remaining - attributes]
ReadOnlyDict({
'device_class': 'duration',
'friendly_name': 'System Monitor Battery remaining',
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTime.MINUTES: 'min'>,
})
# ---
# name: test_sensor[System Monitor Battery remaining - state]
'277.133333333333'
# ---
# name: test_sensor[System Monitor Disk free / - attributes] # name: test_sensor[System Monitor Disk free / - attributes]
ReadOnlyDict({ ReadOnlyDict({
'device_class': 'data_size', 'device_class': 'data_size',
@@ -84,17 +95,6 @@
# name: test_sensor[System Monitor Disk use /media/share - state] # name: test_sensor[System Monitor Disk use /media/share - state]
'300.0' '300.0'
# --- # ---
# name: test_sensor[System Monitor Duration - attributes]
ReadOnlyDict({
'device_class': 'duration',
'friendly_name': 'System Monitor Duration',
'state_class': <SensorStateClass.MEASUREMENT: 'measurement'>,
'unit_of_measurement': <UnitOfTime.MINUTES: 'min'>,
})
# ---
# name: test_sensor[System Monitor Duration - state]
'277.133333333333'
# ---
# name: test_sensor[System Monitor IPv4 address eth0 - attributes] # name: test_sensor[System Monitor IPv4 address eth0 - attributes]
ReadOnlyDict({ ReadOnlyDict({
'friendly_name': 'System Monitor IPv4 address eth0', 'friendly_name': 'System Monitor IPv4 address eth0',