Rename HomeAssistantType to HomeAssistant (#897)

This commit is contained in:
Milan Meulemans 2021-04-23 16:44:44 +02:00 committed by GitHub
parent 9459926ca8
commit b37ba4d0b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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