mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Ensure entity platform in vacuum tests (#135786)
This commit is contained in:
parent
88c3be4ecf
commit
e5164496cf
@ -33,6 +33,7 @@ from .common import async_start
|
||||
from tests.common import (
|
||||
MockConfigEntry,
|
||||
MockEntity,
|
||||
MockEntityPlatform,
|
||||
MockModule,
|
||||
help_test_all,
|
||||
import_and_test_deprecated_constant_enum,
|
||||
@ -288,6 +289,8 @@ async def test_supported_features_compat(hass: HomeAssistant) -> None:
|
||||
_attr_fan_speed_list = ["silent", "normal", "pet hair"]
|
||||
|
||||
entity = _LegacyConstantsStateVacuum()
|
||||
entity.hass = hass
|
||||
entity.platform = MockEntityPlatform(hass)
|
||||
assert isinstance(entity.supported_features, int)
|
||||
assert entity.supported_features == int(features)
|
||||
assert entity.supported_features_compat is (
|
||||
|
Loading…
x
Reference in New Issue
Block a user