mirror of
https://github.com/home-assistant/core.git
synced 2025-04-25 17:57:55 +00:00
Fix entity test
This commit is contained in:
parent
f2125a1133
commit
e20bda33a4
@ -2521,10 +2521,13 @@ async def test_cached_entity_property_override(hass: HomeAssistant) -> None:
|
|||||||
|
|
||||||
|
|
||||||
async def test_entity_report_deprecated_supported_features_values(
|
async def test_entity_report_deprecated_supported_features_values(
|
||||||
|
hass: HomeAssistant,
|
||||||
caplog: pytest.LogCaptureFixture,
|
caplog: pytest.LogCaptureFixture,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Test reporting deprecated supported feature values only happens once."""
|
"""Test reporting deprecated supported feature values only happens once."""
|
||||||
ent = entity.Entity()
|
ent = entity.Entity()
|
||||||
|
ent.hass = hass
|
||||||
|
ent.platform = MockEntityPlatform(hass)
|
||||||
|
|
||||||
class MockEntityFeatures(IntFlag):
|
class MockEntityFeatures(IntFlag):
|
||||||
VALUE1 = 1
|
VALUE1 = 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user