mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-28 03:36:29 +00:00
Rename HomeAssistantType to HomeAssistant (#897)
This commit is contained in:
parent
9459926ca8
commit
b37ba4d0b7
@ -15,12 +15,11 @@ If you prefer to go the manual route, create a new file in your integration fold
|
|||||||
```python
|
```python
|
||||||
import asyncio
|
import asyncio
|
||||||
from typing import Iterable, Optional
|
from typing import Iterable, Optional
|
||||||
from homeassistant.core import Context, State
|
from homeassistant.core import Context, HomeAssistant, State
|
||||||
from homeassistant.helpers.typing import HomeAssistantType
|
|
||||||
|
|
||||||
|
|
||||||
async def async_reproduce_states(
|
async def async_reproduce_states(
|
||||||
hass: HomeAssistantType, states: Iterable[State], context: Optional[Context] = None
|
hass: HomeAssistant, states: Iterable[State], context: Optional[Context] = None
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Reproduce component states."""
|
"""Reproduce component states."""
|
||||||
# TODO reproduce states
|
# TODO reproduce states
|
||||||
|
Loading…
x
Reference in New Issue
Block a user