DEVELOPMENT ENVIRONMENT

~liljamo/ha-ouman-eh800

ref: a21df4529c0abd305baa27231561fa0a8b1ae0b2 ha-ouman-eh800/custom_components/ouman_eh800/__init__.py -rw-r--r-- 562 bytes
a21df452Jonni Liljamo initial 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
"""
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:
    _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