mirror of
https://github.com/home-assistant/core.git
synced 2025-08-30 18:01:31 +02:00
Fix
This commit is contained in:
@@ -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(
|
||||||
|
@@ -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',
|
||||||
|
Reference in New Issue
Block a user