Initial project scaffold
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
"""The MB-Secure integration."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
from .const import DOMAIN
|
||||
|
||||
|
||||
async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
"""Set up MB-Secure from a config entry."""
|
||||
hass.data.setdefault(DOMAIN, {})[entry.entry_id] = None
|
||||
return True
|
||||
|
||||
|
||||
async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
||||
"""Unload an MB-Secure config entry."""
|
||||
hass.data[DOMAIN].pop(entry.entry_id)
|
||||
return True
|
||||
@@ -0,0 +1,3 @@
|
||||
"""Constants for the MB-Secure integration."""
|
||||
|
||||
DOMAIN = "mb_secure"
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"domain": "mb_secure",
|
||||
"name": "MB-Secure",
|
||||
"version": "0.1.0",
|
||||
"config_flow": false,
|
||||
"documentation": "https://git.bahmcloud.de/bahmcloud/home-assistant-mb-secure",
|
||||
"integration_type": "hub",
|
||||
"iot_class": "local_push",
|
||||
"requirements": []
|
||||
}
|
||||
Reference in New Issue
Block a user