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
4 changes: 4 additions & 0 deletions custom_components/water_monitor/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from __future__ import annotations

from homeassistant.config_entries import ConfigEntry
from homeassistant.helpers import config_validation as cv
from homeassistant.core import HomeAssistant, ServiceCall
from homeassistant.helpers import device_registry as dr

Expand All @@ -10,6 +11,9 @@
# Platforms provided by this integration
PLATFORMS: list[str] = ["sensor", "binary_sensor", "number"]

# This integration is config-entry only (no YAML).
CONFIG_SCHEMA = cv.config_entry_only_config_schema(DOMAIN)


async def async_setup(hass: HomeAssistant, config: dict) -> bool:
"""Set up the integration at Home Assistant start."""
Expand Down
10 changes: 5 additions & 5 deletions custom_components/water_monitor/manifest.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"domain": "water_monitor",
"name": "Water Monitor",
"version": "0.4.0",
"codeowners": ["@markaggar"],
"config_flow": true,
"documentation": "https://github.com/markaggar/Water-Monitor",
"integration_type": "device",
"iot_class": "local_polling",
"issue_tracker": "https://github.com/markaggar/Water-Monitor/issues",
"requirements": [],
"codeowners": ["@markaggar"],
"iot_class": "local_polling",
"integration_type": "device",
"config_flow": true
"version": "0.4.1"
}