Fix entity test

This commit is contained in:
G Johansson 2025-01-18 14:25:47 +00:00 committed by Franck Nijhof
parent f2125a1133
commit e20bda33a4

View File

@ -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