From 5c324c2f365e29d6186a740a940368417910aa37 Mon Sep 17 00:00:00 2001 From: Aaron Bach Date: Wed, 28 Feb 2018 14:10:58 -0700 Subject: [PATCH] Added docs for https://github.com/home-assistant/home-assistant/issues/12787 (#4784) --- source/_components/sensor.pollen.markdown | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/source/_components/sensor.pollen.markdown b/source/_components/sensor.pollen.markdown index 9a9ddc05ec6..8c613882242 100644 --- a/source/_components/sensor.pollen.markdown +++ b/source/_components/sensor.pollen.markdown @@ -30,7 +30,7 @@ liking): ```yaml sensor: platform: pollen - zip_code: ZIP_CODE + zip_code: "00544" monitored_conditions: - allergy_average_forecasted - allergy_average_historical @@ -42,15 +42,20 @@ sensor: {% configuration %} zip_code: - description: the U.S. ZIP code to gather data for + description: the U.S. ZIP code to gather data for (as a quoted string) required: true - type: int + type: string monitored_conditions: description: the metric types to monitor; valid values are specified below required: true type: list {% endconfiguration %} +

+It is important to ensure the ZIP code is quoted if it starts with a 0. Unquoted +ZIP codes that start with 0 will cause errors. +

+ ## {% linkable_title Available Metrics %} The following metrics can be monitored: