Skip to content

Commit

Permalink
Merge pull request #19 from mauro-midolo/master
Browse files Browse the repository at this point in the history
Aggiunte action per il controllo di conformità di HACS
  • Loading branch information
virtualdj authored Oct 21, 2023
2 parents ec144e1 + d6422c4 commit 480e5dd
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 4 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/hacs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Validate with HACS

on:
pull_request:
push:
branches: master

jobs:
hacs:
name: HACS Action
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
- name: HACS Action
uses: "hacs/action@main"
with:
category: "integration"
ignore: "brands"
13 changes: 13 additions & 0 deletions .github/workflows/hassfest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Validate with hassfest

on:
pull_request:
push:
branches: master

jobs:
validate:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
- uses: "home-assistant/actions/hassfest@master"
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

[![hacs_badge](https://img.shields.io/badge/HACS-Custom-41BDF5.svg?style=for-the-badge)](https://github.com/hacs/integration)

[![Validate with hassfest](https://github.com/virtualdj/pun_sensor/actions/workflows/hassfest.yml/badge.svg?branch=master)](https://github.com/virtualdj/pun_sensor/actions/workflows/hassfest.yml) [![Validate with HACS](https://github.com/virtualdj/pun_sensor/actions/workflows/hacs.yml/badge.svg)](https://github.com/virtualdj/pun_sensor/actions/workflows/hacs.yml)

Integrazione per **Home Assistant** (basata sullo script [pun-fasce](https://github.com/virtualdj/pun-fasce)) che mostra i prezzi stimati del mese corrente per fasce orarie (F1, F2 e F3 e mono-oraria) nonché la fascia oraria attuale.

I valori vengono scaricati dal sito [MercatoElettrico.org](https://www.mercatoelettrico.org/It/Default.aspx) per l'intero mese e viene calcolata la media per fasce giorno per giorno, in questo modo verso la fine del mese il valore mostrato si avvicina sempre di più al prezzo reale del PUN in bolletta (per i contratti a prezzo variabile).
Expand Down
11 changes: 7 additions & 4 deletions custom_components/pun_sensor/manifest.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
{
"domain": "pun_sensor",
"name": "Prezzi PUN del mese",
"documentation": "https://github.com/virtualdj/pun_sensor",
"dependencies": [],
"codeowners": [],
"codeowners": [
"@virtualdj"
],
"config_flow": true,
"requirements": ["holidays", "bs4"],
"dependencies": [],
"documentation": "https://github.com/virtualdj/pun_sensor",
"iot_class": "local_polling",
"issue_tracker": "https://github.com/virtualdj/pun_sensor/issues",
"requirements": ["holidays", "bs4"],
"version": "0.3.3"
}
1 change: 1 addition & 0 deletions hacs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "Prezzi PUN del mese",
"homeassistant": "2022.8",
"hacs": "1.33.0",
"render_readme": true
}

0 comments on commit 480e5dd

Please sign in to comment.