mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 09:47:52 +00:00
Bump psutil to 6.0.0 (#121385)
This commit is contained in:
parent
d113ea8e47
commit
98370fd9a0
@ -6,5 +6,5 @@
|
||||
"documentation": "https://www.home-assistant.io/integrations/systemmonitor",
|
||||
"iot_class": "local_push",
|
||||
"loggers": ["psutil"],
|
||||
"requirements": ["psutil-home-assistant==0.0.1", "psutil==5.9.8"]
|
||||
"requirements": ["psutil-home-assistant==0.0.1", "psutil==6.0.0"]
|
||||
}
|
||||
|
@ -1602,7 +1602,7 @@ proxmoxer==2.0.1
|
||||
psutil-home-assistant==0.0.1
|
||||
|
||||
# homeassistant.components.systemmonitor
|
||||
psutil==5.9.8
|
||||
psutil==6.0.0
|
||||
|
||||
# homeassistant.components.pulseaudio_loopback
|
||||
pulsectl==23.5.2
|
||||
|
@ -1279,7 +1279,7 @@ prometheus-client==0.17.1
|
||||
psutil-home-assistant==0.0.1
|
||||
|
||||
# homeassistant.components.systemmonitor
|
||||
psutil==5.9.8
|
||||
psutil==6.0.0
|
||||
|
||||
# homeassistant.components.androidtv
|
||||
pure-python-adb[async]==0.3.0.dev0
|
||||
|
@ -174,11 +174,11 @@ def mock_psutil(mock_process: list[MockProcess]) -> Generator:
|
||||
"cpu0-thermal": [shwtemp("cpu0-thermal", 50.0, 60.0, 70.0)]
|
||||
}
|
||||
mock_psutil.disk_partitions.return_value = [
|
||||
sdiskpart("test", "/", "ext4", "", 1, 1),
|
||||
sdiskpart("test2", "/media/share", "ext4", "", 1, 1),
|
||||
sdiskpart("test3", "/incorrect", "", "", 1, 1),
|
||||
sdiskpart("hosts", "/etc/hosts", "bind", "", 1, 1),
|
||||
sdiskpart("proc", "/proc/run", "proc", "", 1, 1),
|
||||
sdiskpart("test", "/", "ext4", ""),
|
||||
sdiskpart("test2", "/media/share", "ext4", ""),
|
||||
sdiskpart("test3", "/incorrect", "", ""),
|
||||
sdiskpart("hosts", "/etc/hosts", "bind", ""),
|
||||
sdiskpart("proc", "/proc/run", "proc", ""),
|
||||
]
|
||||
mock_psutil.boot_time.return_value = 1708786800.0
|
||||
mock_psutil.NoSuchProcess = NoSuchProcess
|
||||
|
@ -50,21 +50,19 @@ async def test_disk_util(
|
||||
"""Test the disk failures."""
|
||||
|
||||
mock_psutil.psutil.disk_partitions.return_value = [
|
||||
sdiskpart("test", "/", "ext4", "", 1, 1), # Should be ok
|
||||
sdiskpart("test2", "/media/share", "ext4", "", 1, 1), # Should be ok
|
||||
sdiskpart("test3", "/incorrect", "", "", 1, 1), # Should be skipped as no type
|
||||
sdiskpart("test", "/", "ext4", ""), # Should be ok
|
||||
sdiskpart("test2", "/media/share", "ext4", ""), # Should be ok
|
||||
sdiskpart("test3", "/incorrect", "", ""), # Should be skipped as no type
|
||||
sdiskpart(
|
||||
"proc", "/proc/run", "proc", "", 1, 1
|
||||
"proc", "/proc/run", "proc", ""
|
||||
), # Should be skipped as in skipped disk types
|
||||
sdiskpart(
|
||||
"test4",
|
||||
"/tmpfs/", # noqa: S108
|
||||
"tmpfs",
|
||||
"",
|
||||
1,
|
||||
1,
|
||||
), # Should be skipped as in skipped disk types
|
||||
sdiskpart("test5", "E:", "cd", "cdrom", 1, 1), # Should be skipped as cdrom
|
||||
sdiskpart("test5", "E:", "cd", "cdrom"), # Should be skipped as cdrom
|
||||
]
|
||||
|
||||
mock_config_entry.add_to_hass(hass)
|
||||
|
Loading…
x
Reference in New Issue
Block a user