Remove HomeAssistantType alias - Part 4 (#49515)

This commit is contained in:
Franck Nijhof 2021-04-21 12:18:42 +02:00 committed by GitHub
parent 77ae4abc6e
commit 168b3c100c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 63 additions and 68 deletions

View file

@ -13,14 +13,13 @@ from homeassistant.const import (
EVENT_HOMEASSISTANT_START,
EVENT_HOMEASSISTANT_STOP,
)
from homeassistant.core import callback
from homeassistant.core import HomeAssistant, callback
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.dispatcher import (
async_dispatcher_connect,
async_dispatcher_send,
)
from homeassistant.helpers.entity import Entity
from homeassistant.helpers.typing import HomeAssistantType
DOMAIN = "ffmpeg"
@ -91,7 +90,7 @@ async def async_setup(hass, config):
async def async_get_image(
hass: HomeAssistantType,
hass: HomeAssistant,
input_source: str,
output_format: str = IMAGE_JPEG,
extra_cmd: str | None = None,