Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions custom_components/solaredge_modbus_multi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
CONF_NAME,
CONF_HOST,
CONF_PORT,
CONF_SCAN_INTERVAL
CONF_SCAN_INTERVAL,
Platform,
)
from homeassistant.core import HomeAssistant
from homeassistant.helpers.update_coordinator import (
Expand All @@ -34,7 +35,7 @@

_LOGGER = logging.getLogger(__name__)

PLATFORMS: list[str] = ["sensor"]
PLATFORMS: list[str] = [Platform.SENSOR]

async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
"""Set up SolarEdge Modbus from a config entry."""
Expand Down Expand Up @@ -77,7 +78,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:

await coordinator.async_config_entry_first_refresh()

hass.config_entries.async_setup_platforms(entry, PLATFORMS)
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)

entry.async_on_unload(entry.add_update_listener(async_reload_entry))

Expand Down
2 changes: 1 addition & 1 deletion hacs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "SolarEdge Modbus Multi-Inverter",
"content_in_root": false,
"homeassistant": "2022.2.0",
"homeassistant": "2022.8.0",
"render_readme": false
}