Add types-psutil dependency (#98267)
This commit is contained in:
parent
2ed11d2900
commit
8fbcffcf9f
2 changed files with 3 additions and 2 deletions
|
@ -9,7 +9,7 @@ import logging
|
|||
import os
|
||||
import socket
|
||||
import sys
|
||||
from typing import Any, cast
|
||||
from typing import Any
|
||||
|
||||
import psutil
|
||||
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
|
||||
# name, which makes label not match because label adds cpu# at end.
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue