mirror of
https://github.com/home-assistant/core.git
synced 2025-04-28 19:27:51 +00:00
Add types-psutil dependency (#98267)
This commit is contained in:
parent
2ed11d2900
commit
8fbcffcf9f
@ -9,7 +9,7 @@ import logging
|
|||||||
import os
|
import os
|
||||||
import socket
|
import socket
|
||||||
import sys
|
import sys
|
||||||
from typing import Any, cast
|
from typing import Any
|
||||||
|
|
||||||
import psutil
|
import psutil
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
@ -613,6 +613,6 @@ def _read_cpu_temperature() -> float | None:
|
|||||||
# check both name and label because some systems embed cpu# in the
|
# check both name and label because some systems embed cpu# in the
|
||||||
# name, which makes label not match because label adds cpu# at end.
|
# name, which makes label not match because label adds cpu# at end.
|
||||||
if _label in CPU_SENSOR_PREFIXES or name in CPU_SENSOR_PREFIXES:
|
if _label in CPU_SENSOR_PREFIXES or name in CPU_SENSOR_PREFIXES:
|
||||||
return cast(float, round(entry.current, 1))
|
return round(entry.current, 1)
|
||||||
|
|
||||||
return None
|
return None
|
||||||
|
@ -42,6 +42,7 @@ types-enum34==1.1.8
|
|||||||
types-ipaddress==1.0.8
|
types-ipaddress==1.0.8
|
||||||
types-paho-mqtt==1.6.0.6
|
types-paho-mqtt==1.6.0.6
|
||||||
types-pkg-resources==0.1.3
|
types-pkg-resources==0.1.3
|
||||||
|
types-psutil==5.9.5
|
||||||
types-python-dateutil==2.8.19.13
|
types-python-dateutil==2.8.19.13
|
||||||
types-python-slugify==0.1.2
|
types-python-slugify==0.1.2
|
||||||
types-pytz==2023.3.0.0
|
types-pytz==2023.3.0.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user