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
+7
View File
@@ -0,0 +1,7 @@
__pycache__/
.pytest_cache/
.mypy_cache/
.ruff_cache/
.coverage
.venv/
*.pyc
+7
View File
@@ -0,0 +1,7 @@
# Repository Rules
This repository is public and may communicate only with the vendor-neutral Bridge API v1. Never add direct device connections, device credentials, proprietary endpoints, wire fields, status codes, payloads, private fixtures, or protocol-derived mappings.
Use stable bridge IDs for Home Assistant unique IDs, create entities only for reported capabilities, and sanitize diagnostics. Run the configured formatter, linter, type checker, and full test suite for changes.
All source code, comments, tests, UI strings, and documentation must be written in English. Do not add a license, publish a release, or change versions without explicit approval.
+5
View File
@@ -0,0 +1,5 @@
# MB-Secure for Home Assistant
Unofficial local Home Assistant integration for MB-Secure through the vendor-neutral MB-Secure Bridge API.
This public integration never connects directly to the controller and never stores controller credentials. The implementation is currently being developed against a neutral mock bridge.
+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
+3
View File
@@ -0,0 +1,3 @@
"""Constants for the MB-Secure integration."""
DOMAIN = "mb_secure"
+10
View File
@@ -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": []
}