DEVELOPMENT ENVIRONMENT

~liljamo/ha-ouman-eh800

ref: 084a34e5eb98102d3beeff54d9c1368155cec938 ha-ouman-eh800/custom_components/ouman_eh800/__init__.py -rw-r--r-- 580 bytes
084a34e5Jonni Liljamo format 19 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"""
ouman_eh800
"""

import logging

from homeassistant.core import HomeAssistant
from homeassistant.config_entries import ConfigEntry

from .const import DOMAIN

_LOGGER = logging.getLogger(__name__)

PLATFORMS = ["sensor"]


async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
    """TODO"""

    _LOGGER.debug("Setting up Ouman EH-800")

    hass.data.setdefault(DOMAIN, {})
    hass_data = dict(entry.data)
    hass.data[DOMAIN][entry.entry_id] = hass_data

    await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)

    return True