Skip to content

Commit

Permalink
prep for official hass listing
Browse files Browse the repository at this point in the history
  • Loading branch information
tofuSCHNITZEL committed May 29, 2022
1 parent 2e30cfa commit 405a26e
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 25 deletions.
3 changes: 2 additions & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* @ludeeus
* @ludeeus
* @tofuSCHNTZEL
8 changes: 4 additions & 4 deletions .github/pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v2.6.2
rev: v2.32.1
hooks:
- id: pyupgrade
stages: [manual]
args:
- "--py37-plus"

- repo: https://github.com/psf/black
rev: 19.10b0
rev: 22.3.0
hooks:
- id: black
stages: [manual]
Expand All @@ -18,7 +18,7 @@ repos:
files: ^((custom_components|script|tests)/.+)?[^/]+\.py$

- repo: https://github.com/codespell-project/codespell
rev: v1.17.1
rev: v2.1.0
hooks:
- id: codespell
stages: [manual]
Expand All @@ -27,7 +27,7 @@ repos:
- --ignore-words-list=hass,ba,fo,mabe

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
rev: v4.2.0
hooks:
- id: check-json
stages: [manual]
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
branches:
- master

permissions:
checks: write
contents: write

jobs:
matrix:
runs-on: ubuntu-latest
Expand All @@ -24,10 +28,10 @@ jobs:
- mixed-line-ending
steps:
- name: Check out repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
id: python
with:
python-version: 3.9
Expand Down
23 changes: 11 additions & 12 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,24 @@ on:

jobs:
validate-hassfest:
runs-on: ubuntu-latest
name: With hassfest
runs-on: "ubuntu-latest"
name: "With hassfest"
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: "Check out repository"
uses: "actions/checkout@v2"

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

validate-hacs:
runs-on: ubuntu-latest
name: With HACS
runs-on: "ubuntu-latest"
name: "With HACS"
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: "Check out repository"
uses: "actions/checkout@v3"

- name: HACS validation
uses: "hacs/integration/action@master"
- name: "HACS validation"
uses: "hacs/action@main"
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
category: "integration"
ignore: brands
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![hacs_badge](https://img.shields.io/badge/HACS-Default-41BDF5.svg?style=for-the-badge)](https://github.com/hacs/integration)

# Get information about next departures

A sensor platform which allows you to get information about next departure from specified stop.
Expand Down
2 changes: 1 addition & 1 deletion custom_components/wienerlinien/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Home Assistant integration to get information about next departure from specified stop in Vienna.
https://github.com/custom-components/wienerlinien/
https://github.com/tofuSCHNITZEL/wienerlinien/
"""
9 changes: 5 additions & 4 deletions custom_components/wienerlinien/manifest.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"domain": "wienerlinien",
"name": "Wienerlinien",
"version": "1.1",
"documentation": "https://github.com/custom-components/wienerlinien",
"issue_tracker": "https://github.com/custom-components/wienerlinien/issues",
"version": "1.2",
"documentation": "https://github.com/tofuSCHNITZEL/wienerlinien",
"issue_tracker": "https://github.com/tofuSCHNITZEL/wienerlinien/issues",
"dependencies": [],
"codeowners": [
"@ludeeus"
"@ludeeus",
"@tofuSCHNITZEL"
],
"requirements": [],
"iot_class": "cloud_polling"
Expand Down
2 changes: 1 addition & 1 deletion custom_components/wienerlinien/sensor.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
A integration that allows you to get information about next departure from specified stop.
For more details about this component, please refer to the documentation at
https://github.com/custom-components/wienerlinien
https://github.com/tofuSCHNITZEL/wienerlinien
"""
import logging
from datetime import timedelta
Expand Down

0 comments on commit 405a26e

Please sign in to comment.