Skip to content

Commit 5356783

Browse files
authored
Merge pull request #36 from fboundy/patch
Add CONFIG_SCHEMA (clear hassfest warning); fix stale docs URL
2 parents 83c4fba + 7c08af4 commit 5356783

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

‎.github/workflows/hassfest.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ jobs:
1010
validate:
1111
runs-on: "ubuntu-latest"
1212
steps:
13-
- uses: "actions/checkout@v3"
13+
- uses: "actions/checkout@v5"
1414
- uses: home-assistant/actions/hassfest@master

‎.github/workflows/validate.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
validate-hacs:
1212
runs-on: "ubuntu-latest"
1313
steps:
14-
- uses: "actions/checkout@v3"
14+
- uses: "actions/checkout@v5"
1515
- name: HACS validation
1616
uses: "hacs/action@main"
1717
with:

‎custom_components/solisconnect/__init__.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import logging
55
from datetime import datetime
66

7+
import homeassistant.helpers.config_validation as cv
78
import voluptuous as vol
89
from homeassistant.components.persistent_notification import async_create as pn_create
910
from homeassistant.config_entries import ConfigEntry
@@ -55,6 +56,11 @@
5556

5657
PLATFORMS = [Platform.NUMBER, Platform.SWITCH, Platform.BINARY_SENSOR, Platform.TIME, Platform.SELECT]
5758

59+
# This integration is configured only via the config flow (no YAML config). async_setup
60+
# just registers services, so declare an empty config schema — this silences hassfest's
61+
# CONFIG_SCHEMA warning and asserts the integration takes no YAML configuration.
62+
CONFIG_SCHEMA = cv.config_entry_only_config_schema(DOMAIN)
63+
5864
SCHEME_HOLDING_REGISTER = vol.Schema(
5965
{
6066
vol.Required("address"): vol.Coerce(int),

‎custom_components/solisconnect/manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
],
77
"config_flow": true,
88
"dependencies": [],
9-
"documentation": "https://solisconnect.readthedocs.io",
9+
"documentation": "https://fboundy.github.io/solisconnect/",
1010
"integration_type": "device",
1111
"iot_class": "local_polling",
1212
"issue_tracker": "https://github.com/fboundy/solisconnect/issues",

0 commit comments

Comments
 (0)