diff --git a/tests/components/compensation/test_sensor.py b/tests/components/compensation/test_sensor.py index 65741fd86ba..6d504d03b6a 100644 --- a/tests/components/compensation/test_sensor.py +++ b/tests/components/compensation/test_sensor.py @@ -163,7 +163,7 @@ async def test_numpy_errors(hass, caplog): await hass.async_start() await hass.async_block_till_done() - assert "invalid value encountered in true_divide" in caplog.text + assert "invalid value encountered in divide" in caplog.text async def test_datapoints_greater_than_degree(hass, caplog):