From e20bda33a418052817e3a2d14b039185006631b8 Mon Sep 17 00:00:00 2001 From: G Johansson Date: Sat, 18 Jan 2025 14:25:47 +0000 Subject: [PATCH] Fix entity test --- tests/helpers/test_entity.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/helpers/test_entity.py b/tests/helpers/test_entity.py index 1c94eabf872..c4c82faf96f 100644 --- a/tests/helpers/test_entity.py +++ b/tests/helpers/test_entity.py @@ -2521,10 +2521,13 @@ async def test_cached_entity_property_override(hass: HomeAssistant) -> None: async def test_entity_report_deprecated_supported_features_values( + hass: HomeAssistant, caplog: pytest.LogCaptureFixture, ) -> None: """Test reporting deprecated supported feature values only happens once.""" ent = entity.Entity() + ent.hass = hass + ent.platform = MockEntityPlatform(hass) class MockEntityFeatures(IntFlag): VALUE1 = 1