Skip to content

Commit bab155e

Browse files
authored
Merge pull request #15 from derolli1976/hacs_validation_wf
Activate hassfest validation workflow. Remove warnings/errors
2 parents 249b9c4 + 90b1064 commit bab155e

3 files changed

Lines changed: 23 additions & 5 deletions

File tree

.github/workflows/hassfest.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Validate with hassfest
2+
3+
on:
4+
push:
5+
pull_request:
6+
schedule:
7+
- cron: "0 0 * * *"
8+
9+
jobs:
10+
validate:
11+
runs-on: "ubuntu-latest"
12+
steps:
13+
- uses: "actions/checkout@v3"
14+
- uses: home-assistant/actions/hassfest@master

custom_components/enpal_webparser/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@
44
from homeassistant.config_entries import ConfigEntry
55
from homeassistant.helpers.typing import ConfigType
66
from homeassistant.exceptions import ConfigEntryNotReady
7+
from homeassistant.helpers import config_validation as cv
78

89
from .const import DOMAIN
910

11+
CONFIG_SCHEMA = cv.config_entry_only_config_schema(DOMAIN)
12+
13+
1014
_LOGGER = logging.getLogger(__name__)
1115

1216

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"domain": "enpal_webparser",
33
"name": "Enpal Solar",
4-
"version": "2.0.2",
4+
"codeowners": ["@derolli1976"],
5+
"config_flow": true,
6+
"dependencies": [],
57
"documentation": "https://github.com/derolli1976/enpal",
8+
"iot_class": "local_polling",
69
"issue_tracker": "https://github.com/derolli1976/enpal/issues",
7-
"dependencies": [],
8-
"codeowners": ["@derolli1976"],
910
"requirements": [],
10-
"iot_class": "local_polling",
11-
"config_flow": true
11+
"version": "2.0.2"
1212
}

0 commit comments

Comments
 (0)