Home Assistant Unofficial Reference 2024.12.1
__init__.py
Go to the documentation of this file.
1 """The Hardware integration."""
2 
3 from __future__ import annotations
4 
5 from homeassistant.core import HomeAssistant
6 from homeassistant.helpers import config_validation as cv
7 from homeassistant.helpers.typing import ConfigType
8 
9 from . import websocket_api
10 from .const import DOMAIN
11 
12 CONFIG_SCHEMA = cv.empty_config_schema(DOMAIN)
13 
14 
15 async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
16  """Set up Hardware."""
17  hass.data[DOMAIN] = {}
18 
19  await websocket_api.async_setup(hass)
20 
21  return True
bool async_setup(HomeAssistant hass, ConfigType config)
Definition: __init__.py:15