Initial project scaffold

This commit is contained in:
2026-09-04 11:18:06 +02:00
commit 42050010b2
6 changed files with 52 additions and 0 deletions
+20
View File
@@ -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