From bda6a182aa50dd9f21a5aa6a53e14ba4f605a851 Mon Sep 17 00:00:00 2001 From: Leonardo Merza Date: Mon, 19 Aug 2019 11:47:40 -0400 Subject: [PATCH 1/2] Update README.md --- README.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 6661c3b..6bf331c 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,14 @@ Gets emails from SMTP and prases out any tracking numbers from FedEx, UPS, USPS, ## Installation * Add the `email` folder in your `custom_components` folder + +```yaml +sensor: + - platform: email + email: !secret my_email + password: !secret my_email_password +``` + * If the component doesn't load this might be due to Home Assistant not installing the requirements automatically through the manifests file. You can install them manaually by running `pip install beautifulsoup4==4.7.1 imapclient==2.1.0 mail-parser==3.9.3` * If you use 2 factor authentication for Google you'll need to create an app password. See more details [here](https://support.google.com/accounts/answer/185833?hl=en) @@ -28,13 +36,6 @@ Gets emails from SMTP and prases out any tracking numbers from FedEx, UPS, USPS, | folder | string | **Optional** | `INBOX` Which folder to pull emails from | show_all | boolean | **Optional** | `false` Show only unseen emails (default) or all emails from `folder` -```yaml -sensor: - - platform: email - email: !secret my_email - password: !secret my_email_password -``` - --- From 2f0441baf6d32fb35615f1c903aaad68168da828 Mon Sep 17 00:00:00 2001 From: Leonardo Merza Date: Mon, 19 Aug 2019 11:48:00 -0400 Subject: [PATCH 2/2] Update info.md --- info.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/info.md b/info.md index 6661c3b..6bf331c 100644 --- a/info.md +++ b/info.md @@ -13,6 +13,14 @@ Gets emails from SMTP and prases out any tracking numbers from FedEx, UPS, USPS, ## Installation * Add the `email` folder in your `custom_components` folder + +```yaml +sensor: + - platform: email + email: !secret my_email + password: !secret my_email_password +``` + * If the component doesn't load this might be due to Home Assistant not installing the requirements automatically through the manifests file. You can install them manaually by running `pip install beautifulsoup4==4.7.1 imapclient==2.1.0 mail-parser==3.9.3` * If you use 2 factor authentication for Google you'll need to create an app password. See more details [here](https://support.google.com/accounts/answer/185833?hl=en) @@ -28,13 +36,6 @@ Gets emails from SMTP and prases out any tracking numbers from FedEx, UPS, USPS, | folder | string | **Optional** | `INBOX` Which folder to pull emails from | show_all | boolean | **Optional** | `false` Show only unseen emails (default) or all emails from `folder` -```yaml -sensor: - - platform: email - email: !secret my_email - password: !secret my_email_password -``` - ---