Skip to content

Commit

Permalink
2022.06.0b1
Browse files Browse the repository at this point in the history
* Migrated to a new async library. Thanks @exxamalte, for your hard work.
* Migrated to `DataUpdateCoordinator` to reduce code complexity and improve performance.
* Migrated geo_location platform to integration with config flow.
* Added INGV Earthquakes sensor.
* Added depth, mode and status to geo_location entities attributes.
* Deleted title and external_id from geo_location entities attributes.
  • Loading branch information
caiosweet committed Jun 2, 2022
1 parent 70c5c58 commit 7206a83
Show file tree
Hide file tree
Showing 19 changed files with 1,088 additions and 526 deletions.
17 changes: 10 additions & 7 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
Expand All @@ -24,15 +25,17 @@ A clear and concise description of what you expected to happen.
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'daily'
61 changes: 61 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Release Workflow

on:
release:
types: [published]

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout the repository
uses: actions/checkout@v3

- name: 🔢 Get release version
id: version
uses: home-assistant/actions/helpers/version@master

- name: ℹ️ Get integration information
id: information
run: |
name=$(find custom_components/ -type d -maxdepth 1 | tail -n 1 | cut -d "/" -f2)
echo "::set-output name=name::$name"
- name: 🖊️ Set version number
run: |
jq '.version = "${{ steps.version.outputs.version }}"' \
"${{ github.workspace }}/custom_components/${{ steps.information.outputs.name }}/manifest.json" > tmp \
&& mv -f tmp "${{ github.workspace }}/custom_components/${{ steps.information.outputs.name }}/manifest.json"
- name: 👀 Validate data
run: |
manifestversion=$(jq -r '.version' ${{ github.workspace }}/custom_components/${{ steps.information.outputs.name }}/manifest.json)
if [ "$manifestversion" != "${{ steps.version.outputs.version }}" ]; then
echo "The version in custom_components/${{ steps.information.outputs.name }}/manifest.json was not correct"
echo "$manifestversion"
exit 1
fi
- name: 🔢 Autobump version
run: |
VERSION=${{ steps.version.outputs.version }}
PLACEHOLDER='__version__ = "develop"'
VERSION_FILE=custom_components/${{ steps.information.outputs.name }}/version.py
# ensure the placeholder is there. If grep doesn't find the placeholder
# it exits with exit code 1 and github actions aborts the build.
grep "$PLACEHOLDER" "$VERSION_FILE"
sed -i "s/$PLACEHOLDER/__version__ = \"${VERSION}\"/g" "$VERSION_FILE"
shell: bash

- name: 📦 Create zip file for the integration
run: |
cd "${{ github.workspace }}/custom_components/${{ steps.information.outputs.name }}"
zip ${{ steps.information.outputs.name }}.zip -r ./
- name: 📤 Upload the zip file as a release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: "${{ github.workspace }}/custom_components/${{ steps.information.outputs.name }}/${{ steps.information.outputs.name }}.zip"
asset_name: ${{ steps.information.outputs.name }}.zip
asset_content_type: application/zip
15 changes: 7 additions & 8 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,24 @@ on:

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

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

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

- name: ✅ HACS validation
uses: hacs/action@main
uses: "hacs/action@main"
with:
category: integration
comment: false
#ignore: brands wheels
category: "integration"

46 changes: 46 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Changes

## 2022.06.0 (02/06/2022)

* Migrated to a new async library. Thanks @exxamalte, for your hard work.
* Migrated to `DataUpdateCoordinator` to reduce code complexity and improve performance.
* Migrated geo_location platform to integration with config flow.
* Added INGV Earthquakes sensor.
* Added depth, mode and status to geo_location entities attributes.
* Deleted title and external_id from geo_location entities attributes.

## 2022.02.0 (27/02/2022)

* Bump georss-ingv-centro-nazionale-terremoti-client v0.6.

## 2021.06.0 (08/06/2021)

* Bump georss-ingv-centro-nazionale-terremoti-client v0.5.

## 2021.04.1 (29/04/2021)

* Added iot_class to manifest.

## 2021.04.0 (20/04/2021)

* Fixed image URLs by supporting new pattern.

## 2021.03.1 (28/03/2021)

* Update typing and changed the tag version.

## 1.0.3 (18/02/2021)

* Added version to manifest.json and some enhanced code.

## 1.0.2 (23/11/2020)

* Added more informations about integration #6.

## 1.0.1 (08/11/2020)

* Fixed path of preview images (HACS information).

## 1.0.0 (27/10/2020)

* First release. All credit goes to Malte Franken [@exxamalte].
Loading

0 comments on commit 7206a83

Please sign in to comment.