diff --git a/custom_components/aurora_solar/__init__.py b/custom_components/aurora_solar/__init__.py new file mode 100644 index 0000000..dace57a --- /dev/null +++ b/custom_components/aurora_solar/__init__.py @@ -0,0 +1,15 @@ +from homeassistant.core import HomeAssistant +from homeassistant.config_entries import ConfigEntry +from homeassistant.const import CONF_HOST, CONF_PORT +from .const import DOMAIN + +async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: + hass.data.setdefault(DOMAIN, {}) + hass.data[DOMAIN][entry.entry_id] = { + CONF_HOST: entry.data[CONF_HOST], + CONF_PORT: entry.data[CONF_PORT] + } + return True + +async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: + return True diff --git a/custom_components/aurora_solar/config_flow.py b/custom_components/aurora_solar/config_flow.py new file mode 100644 index 0000000..e69de29 diff --git a/custom_components/aurora_solar/const.py b/custom_components/aurora_solar/const.py new file mode 100644 index 0000000..96f56a9 --- /dev/null +++ b/custom_components/aurora_solar/const.py @@ -0,0 +1,4 @@ +DOMAIN = "aurora_solar" +CONF_HOST = "host" +CONF_PORT = "port" +DEFAULT_PORT = 5000 diff --git a/custom_components/aurora_solar/manifest.json b/custom_components/aurora_solar/manifest.json new file mode 100644 index 0000000..8f0c595 --- /dev/null +++ b/custom_components/aurora_solar/manifest.json @@ -0,0 +1,10 @@ +{ + "domain": "aurora_solar", + "name": "Aurora Solar Inverter", + "documentation": "https://github.com/dein_benutzername/aurora_solar_integration", + "dependencies": [], + "codeowners": ["@dein_benutzername"], + "requirements": [], + "iot_class": "local_polling", + "version": "0.1.0" +} diff --git a/custom_components/aurora_solar/sensor.py b/custom_components/aurora_solar/sensor.py new file mode 100644 index 0000000..e69de29