-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Better fix for config flow defaults * Add more tests for config flow * Missed a default * Update config flow text * Add USPS Exception sensor * Added tests with sample email * Add test for download_img function * Remove commented code * Handle additional date formats in Amazon emails * Move init tests to test_init.py * Fix default for DEFAULT_PATH * Additional tests * Add amazon image download error test * Various path error tests * Add imap_timeout default test * Rework DataUpdateCoordinator * Remove unused variable * Remove commented code * Additional typing * Update release-drafter.yaml * Remove quotes from amazon foward emails * Remove garbage test files * Mail camera (#4) * Create camera.py * Add camera platform * Configuration is done via the config that's already in place * Remove unused imports * More unused imports removed * Add service call * Add service call to update camera * Add tests * Fix docstring * Update requirements_test.txt * Update camera.py * Remove file path since we get it from the coordinator * Attempt to get camera image to auto update * Add guards to service call * Add framework for Amazon camera * Add 'dev' marking to version * Clean up unused imports in test * Put async_update back in * Add host to camera attributes * More cleanup * Rename camera class * Update camera test * Add amazon image name rotation * Add test for amazon image rotation * Simplify amazon rotating image name generation * Adjust image_file_name generation for amazon images * Adjusted test * Create services.yaml * Change debug message * Add amazon deliveries image to camera * Update markdown files and hacs.json * Move images to component directory * Move images to images directory in custom_component directory * Change boolean wording * Add function to copy images to www/mail_and_packages if enabled * Added test for new function * typing * Add cleanup to new image paths * Adjusted test to confirm cleanup in directories * Update some translations * fix missing directory on amazon camera path * More tests for new function * Remove unneeded try/catch * Fix double slash in path * Path fix * Update .codecov.yaml * Add test for check_file_path_access * Clean up commented code * More cleanup * Copy placeholder image into directories * More debugging messages, update USPS tracking number pattern * Create no_deliveries.jpg * Create config.yml * Change default image for amazon * Fix no dlivery logic * Image change * Update camera.py * Fix errors * Removed unneeded logic from image_file_name * Updated docstrings * More tests * Update config.yml * fix: wrong filename generated * When no errors occur and no files are found return random filename * Fixes #413 * Revised tests to check for wrong filename output * Add additional subject for FedEx * Add amazon exception sensor * Adjust tests, handle IMAP errors * Fix Amazon exception email address * fix(shipper): Update for new UPS formatted emails * feat: add UPS exception sensor * chore: new labeler github action * chore: adjust release-drafter * chore: add category to labeler * fix: resolve bug in amazon exception sensor * fixes #431 * fix: filter empty list for amazon forwards * Config flow refactor (#5) * refactor: create _valididate_user_input function * Add check in async_setup_entry to fix invalid amazon forwarding email lists * refactor: update tests and error messages * chore: add comments * chore: add missing docstring * chore: clean up translation files * refactor: adjust tests, correct spelling * chore: fix translation file * chore: update workflow configs * Update release-drafter.yml * update the configs again * fix(shipper): fix usp_delivering sensor * refactor: code clean up and complexity reduction (#6) * refactor: code clean up and complexity reduction * create pylintrc, add missing docstring * more clean up * formatting, remove unused import * clean up unused imports
- Loading branch information
Showing
53 changed files
with
5,141 additions
and
671 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
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,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Questions & Support | ||
url: https://github.com/moralmunky/Home-Assistant-Mail-And-Packages/discussions | ||
about: Please ask and answer questions here. |
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,2 +1,60 @@ | ||
code-quality: tests/* | ||
documentation: docs/* | ||
# code-quality: tests/* | ||
# documentation: docs/* | ||
|
||
# labeler "full" schema | ||
|
||
# enable labeler on issues, prs, or both. | ||
enable: | ||
issues: false | ||
prs: true | ||
# comments object allows you to specify a different message for issues and prs | ||
|
||
comments: | ||
prs: | | ||
👍 Thanks for the contribution! | ||
🏷 I have applied any labels matching special text in your title and description. | ||
Please review the labels and make any necessary changes. | ||
# Labels is an object where: | ||
# - keys are labels | ||
# - values are objects of { include: [ pattern ], exclude: [ pattern ] } | ||
# - pattern must be a valid regex, and is applied globally to | ||
# title + description of issues and/or prs (see enabled config above) | ||
# - 'include' patterns will associate a label if any of these patterns match | ||
# - 'exclude' patterns will ignore this label if any of these patterns match | ||
labels: | ||
"bugfix": | ||
include: | ||
- '\bfix\b' | ||
exclude: [] | ||
"enhancement": | ||
include: | ||
- '\bfeat\b' | ||
- '\brefactor\b' | ||
exclude: [] | ||
"feature": | ||
include: | ||
- '\bfeat\b' | ||
exclude: [] | ||
"code-quality": | ||
include: | ||
- '\btests\b' | ||
- '\brefactor\b' | ||
exclude: [] | ||
"breaking-change": | ||
include: | ||
- '\bBREAKING CHANGE\b' | ||
exclude: [] | ||
"shipper": | ||
include: | ||
- '\bshipper\b' | ||
exclude: [] | ||
"documentation": | ||
include: | ||
- '\bdocs\b' | ||
exclude: [] | ||
"chore": | ||
include: | ||
- '\bchore\b' | ||
exclude: [] |
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,11 +1,27 @@ | ||
name: "Pull Request Labeler" | ||
# name: "Pull Request Labeler" | ||
# on: | ||
# pull_request: | ||
|
||
# jobs: | ||
# triage: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/labeler@main | ||
# with: | ||
# repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
name: Labeler | ||
on: | ||
pull_request: | ||
pull_request_target: | ||
types: [opened] | ||
|
||
jobs: | ||
triage: | ||
labeler: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/labeler@main | ||
- name: Check Labels | ||
id: labeler | ||
uses: jimschubert/labeler-action@v2 | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
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 |
---|---|---|
|
@@ -5,7 +5,6 @@ on: | |
branches: | ||
- master | ||
- dev | ||
|
||
jobs: | ||
update_release_draft: | ||
runs-on: ubuntu-latest | ||
|
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 |
---|---|---|
|
@@ -15,3 +15,5 @@ notes.txt | |
.vscode/settings.json | ||
*.pyc | ||
.coverage | ||
ra_0_mailerProvidedImage0 | ||
mailerProvidedImage0 |
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
Oops, something went wrong.