init home-assistant

This commit is contained in:
2026-11-19 15:15:32 -05:00
parent 2e81d9d300
commit feec6ef9fb
19230 changed files with 3335526 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
"""Common helpers for select entity component tests."""
from homeassistant.components.select import SelectEntity
from tests.common import MockEntity
class MockSelectEntity(MockEntity, SelectEntity):
"""Mock Select class."""
@property
def current_option(self):
"""Return the current option of this select."""
return self._handle("current_option")
@property
def options(self) -> list:
"""Return the list of available options of this select."""
return self._handle("options")
def select_option(self, option: str) -> None:
"""Change the selected option."""
self._values["current_option"] = option