Replace HomeAssistantType with HomeAssistant for integrations m* - n* (#49566)

* Integration neato: rename HomeAssistantType to HomeAssistant.

* Integration mysensors: rename HomeAssistantType to HomeAssistant.

* Integration mobile_app: rename HomeAssistantType to HomeAssistant.

* Integration minecraft_server: rename HomeAssistantType to HomeAssistant.

* Clean up

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
jan iversen 2021-04-22 22:23:36 +02:00 committed by GitHub
parent c3d9aaa896
commit d76993034e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 92 additions and 102 deletions

View file

@ -3,13 +3,13 @@ from homeassistant.components import mysensors
from homeassistant.components.device_tracker import DOMAIN
from homeassistant.components.mysensors import DevId, on_unload
from homeassistant.components.mysensors.const import ATTR_GATEWAY_ID, GatewayId
from homeassistant.core import HomeAssistant
from homeassistant.helpers.dispatcher import async_dispatcher_connect
from homeassistant.helpers.typing import HomeAssistantType
from homeassistant.util import slugify
async def async_setup_scanner(
hass: HomeAssistantType, config, async_see, discovery_info=None
hass: HomeAssistant, config, async_see, discovery_info=None
):
"""Set up the MySensors device scanner."""
if not discovery_info:
@ -53,7 +53,7 @@ async def async_setup_scanner(
class MySensorsDeviceScanner(mysensors.device.MySensorsDevice):
"""Represent a MySensors scanner."""
def __init__(self, hass: HomeAssistantType, async_see, *args):
def __init__(self, hass: HomeAssistant, async_see, *args):
"""Set up instance."""
super().__init__(*args)
self.async_see = async_see