Added first files
This commit is contained in:
15
custom_components/aurora_solar/__init__.py
Normal file
15
custom_components/aurora_solar/__init__.py
Normal file
@@ -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
|
||||||
0
custom_components/aurora_solar/config_flow.py
Normal file
0
custom_components/aurora_solar/config_flow.py
Normal file
4
custom_components/aurora_solar/const.py
Normal file
4
custom_components/aurora_solar/const.py
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
DOMAIN = "aurora_solar"
|
||||||
|
CONF_HOST = "host"
|
||||||
|
CONF_PORT = "port"
|
||||||
|
DEFAULT_PORT = 5000
|
||||||
10
custom_components/aurora_solar/manifest.json
Normal file
10
custom_components/aurora_solar/manifest.json
Normal file
@@ -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"
|
||||||
|
}
|
||||||
0
custom_components/aurora_solar/sensor.py
Normal file
0
custom_components/aurora_solar/sensor.py
Normal file
Reference in New Issue
Block a user