-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Share event listeners for multiple sensors and dispatch all event filters for each sensor derived from a specific event. * Parse boolean values in event data so "true"/"false" are correctly processed. * Add travis CI config - To check lint stage with pre-commit - To produce a zip file for HACS on deploy stage when releasing * Update requirements * Disable listening to EVENT_STATE_CHANGED even with manual YAML * Add version tag to hacs.json and also declare a zip release file * Update CHANGELOG.md * Add version & issue_tracker tags to manifest.json * Bump minor version and update CHANGELOG.md
- Loading branch information
Showing
7 changed files
with
173 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
dist: bionic | ||
language: python | ||
cache: | ||
pip: true | ||
directories: | ||
- $HOME/.cache/pre-commit | ||
env: | ||
- TEST_CMD="pre-commit run --all-files" | ||
install: | ||
- pip install pre-commit | ||
- pre-commit install-hooks | ||
script: | ||
- $TEST_CMD | ||
|
||
matrix: | ||
include: | ||
- name: "lint" | ||
python: 3.8 | ||
|
||
before_deploy: | ||
- cd custom_components/eventsensor | ||
- zip -r eventsensor . | ||
deploy: | ||
provider: releases | ||
api_key: $GITHUB_OAUTH_TOKEN | ||
tag_name: $TRAVIS_TAG | ||
name: $TRAVIS_TAG | ||
file: eventsensor.zip | ||
skip_cleanup: true | ||
draft: true | ||
prerelease: true | ||
on: | ||
tags: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
[tool.poetry] | ||
name = "eventsensor" | ||
version = "2.3.0" | ||
version = "2.4.0" | ||
description = "HomeAssistant custom sensor to track specific events" | ||
authors = ["Eugenio Panadero <[email protected]>"] | ||
license = "MIT" | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.7" | ||
homeassistant = "^0.109.0" | ||
pre-commit = "^2.2.0" | ||
python = ">=3.7" | ||
homeassistant = ">=0.109.0" | ||
|
||
[tool.poetry.dev-dependencies] | ||
pre-commit = ">=2.2.0" | ||
|
||
[tool.black] | ||
line_length = 88 | ||
|