mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Fix wake up in Tesla Fleet (#127615)
This commit is contained in:
parent
59ebb94d24
commit
213cc14494
@ -20,8 +20,9 @@ from .models import TeslaFleetVehicleData
|
|||||||
PARALLEL_UPDATES = 0
|
PARALLEL_UPDATES = 0
|
||||||
|
|
||||||
|
|
||||||
async def do_nothing() -> None:
|
async def do_nothing() -> dict[str, dict[str, bool]]:
|
||||||
"""Do nothing."""
|
"""Do nothing with a positive result."""
|
||||||
|
return {"response": {"result": True}}
|
||||||
|
|
||||||
|
|
||||||
@dataclass(frozen=True, kw_only=True)
|
@dataclass(frozen=True, kw_only=True)
|
||||||
|
@ -28,6 +28,13 @@ async def test_button(
|
|||||||
await setup_platform(hass, normal_config_entry, [Platform.BUTTON])
|
await setup_platform(hass, normal_config_entry, [Platform.BUTTON])
|
||||||
assert_entities(hass, normal_config_entry.entry_id, entity_registry, snapshot)
|
assert_entities(hass, normal_config_entry.entry_id, entity_registry, snapshot)
|
||||||
|
|
||||||
|
await hass.services.async_call(
|
||||||
|
BUTTON_DOMAIN,
|
||||||
|
SERVICE_PRESS,
|
||||||
|
{ATTR_ENTITY_ID: ["button.test_wake"]},
|
||||||
|
blocking=True,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
("name", "func"),
|
("name", "func"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user