Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ss/add gha checks #2

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
20 changes: 20 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "CI"

on:
push:
branches:
- "master"
tags-ignore:
- "**"
pull_request:

jobs:
lint:
name: "Lint"
runs-on: ubuntu-latest
steps:
- name: "Checkout the repository"
uses: actions/checkout@v3

- name: "Check format"
uses: psf/black@stable
35 changes: 35 additions & 0 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: "Validate"

on:
push:
branches:
- "main"
- "feat**"
tags-ignore:
- "**"
pull_request:
schedule:
- cron: "0 0 * * *"

jobs:
validate-hassfest:
runs-on: ubuntu-latest
name: "Hassfest"
steps:
- name: "Checkout the repository"
uses: actions/checkout@v3

- name: "Validate Hassfest"
uses: home-assistant/actions/hassfest@master

validate-hacs:
runs-on: ubuntu-latest
name: "HACS"
steps:
- name: "Checkout the repository"
uses: actions/checkout@v3

- name: "Validate HACS"
uses: hacs/action@main
with:
category: integration
1 change: 1 addition & 0 deletions custom_components/comfoconnect/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support to control a Zehnder ComfoAir Q350/450/600 ventilation unit."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions custom_components/comfoconnect/binary_sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Binary Sensor for the ComfoConnect integration."""

from __future__ import annotations

from dataclasses import dataclass
Expand Down
1 change: 1 addition & 0 deletions custom_components/comfoconnect/button.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Button for the ComfoConnect integration."""

from __future__ import annotations

from collections.abc import Awaitable, Coroutine
Expand Down
1 change: 1 addition & 0 deletions custom_components/comfoconnect/config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Config flow for the ComfoConnect integration."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions custom_components/comfoconnect/fan.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Fan for the ComfoConnect integration."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions custom_components/comfoconnect/select.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Select for the ComfoConnect integration."""

from __future__ import annotations

from collections.abc import Awaitable, Coroutine
Expand Down
1 change: 1 addition & 0 deletions custom_components/comfoconnect/sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Sensor for the ComfoConnect integration."""

from __future__ import annotations

import logging
Expand Down
12 changes: 12 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"domain": "comfoconnect",
"name": "Zehnder ComfoAirQ",
"codeowners": [],
"dependencies": [],
"documentation": "https://github.com/michaelarnauts/home-assistant-comfoconnect",
"integration_type": "device",
"iot_class": "local_polling",
"issue_tracker": "https://github.com/michaelarnauts/home-assistant-comfoconnect/issues",
"requirements": ["aiocomfoconnect==0.1.10"],
"version": "v0.1.11"
}
Loading