Fix test_sensor_process_fails test in System Monitor (#108110)

This commit is contained in:
G Johansson 2024-01-15 19:46:28 +01:00 committed by GitHub
parent 5b3e1306f8
commit 3bc20a072a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@ from homeassistant.components.systemmonitor.sensor import (
get_cpu_icon,
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import STATE_ON, STATE_UNAVAILABLE, STATE_UNKNOWN
from homeassistant.const import STATE_OFF, STATE_ON, STATE_UNAVAILABLE, STATE_UNKNOWN
from homeassistant.core import HomeAssistant
from homeassistant.helpers import entity_registry as er
from homeassistant.setup import async_setup_component
@ -212,7 +212,7 @@ async def test_sensor_process_fails(
process_sensor = hass.states.get("sensor.system_monitor_process_python3")
assert process_sensor is not None
# assert process_sensor.state == STATE_ON
assert process_sensor.state == STATE_OFF
assert "Failed to load process with ID: 1, old name: python3" in caplog.text