diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index b609384..1284959 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1,2 @@ -* @ludeeus \ No newline at end of file +* @ludeeus +* @tofuSCHNTZEL \ No newline at end of file diff --git a/.github/pre-commit-config.yaml b/.github/pre-commit-config.yaml index 738e19d..86345ce 100644 --- a/.github/pre-commit-config.yaml +++ b/.github/pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/asottile/pyupgrade - rev: v2.6.2 + rev: v2.32.1 hooks: - id: pyupgrade stages: [manual] @@ -8,7 +8,7 @@ repos: - "--py37-plus" - repo: https://github.com/psf/black - rev: 19.10b0 + rev: 22.3.0 hooks: - id: black stages: [manual] @@ -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] @@ -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] diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 7dbb63d..f32334c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,6 +8,10 @@ on: branches: - master +permissions: + checks: write + contents: write + jobs: matrix: runs-on: ubuntu-latest @@ -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 diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 88519f0..d8b1625 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -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 \ No newline at end of file diff --git a/README.md b/README.md index 8e9c0e0..6f5aff2 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/custom_components/wienerlinien/__init__.py b/custom_components/wienerlinien/__init__.py index 1711e38..fb8cab2 100644 --- a/custom_components/wienerlinien/__init__.py +++ b/custom_components/wienerlinien/__init__.py @@ -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/ """ diff --git a/custom_components/wienerlinien/manifest.json b/custom_components/wienerlinien/manifest.json index fde7879..148d4a9 100644 --- a/custom_components/wienerlinien/manifest.json +++ b/custom_components/wienerlinien/manifest.json @@ -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" diff --git a/custom_components/wienerlinien/sensor.py b/custom_components/wienerlinien/sensor.py index 01f313a..5a23fe4 100644 --- a/custom_components/wienerlinien/sensor.py +++ b/custom_components/wienerlinien/sensor.py @@ -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