<commit_before>"""
homeassistant.components.sensor.forecast
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Forecast.io weather service.

Configuration:

To use the Forecast sensor you will need to add something like the
following to your configuration.yaml file.

sensor:
  platform: forecast
  api_key: YOUR_APP_KEY
  monitored_conditions:
    - summary
    - precip_type
    - precip_intensity
    - temperature
    - dew_point
    - wind_speed
    - wind_bearing
    - cloud_cover
    - humidity
    - pressure
    - visibility
    - ozone

Variables:

api_key
*Required
To retrieve this value log into your account at http://forecast.io/. You can
make 1000 requests per day. This means that you could create every 1.4 minute
one.

monitored_conditions
*Required
An array specifying the conditions to monitor.

These are the variables for the monitored_conditions array:

type
*Required
The condition you wish to monitor, see the configuration example above for a
list of all available conditions to monitor.

Details for the API : https://developer.forecast.io/docs/v2
"""
import logging
from datetime import timedelta

REQUIREMENTS = ['python-forecastio==1.3.3']

try:
    import forecastio
except ImportError:
    forecastio = None

from homeassistant.util import Throttle
from homeassistant.const import (CONF_API_KEY, TEMP_CELCIUS, TEMP_FAHRENHEIT)
from homeassistant.helpers.entity import Entity

_LOGGER = logging.getLogger(__name__)
SENSOR_TYPES = {
    'summary': ['Summary', ''],<commit_msg>Update docstring ('- type:' was removed a while ago)<commit_after>"""
homeassistant.components.sensor.forecast
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Forecast.io weather service.

Configuration:

To use the Forecast sensor you will need to add something like the
following to your configuration.yaml file.

sensor:
  platform: forecast
  api_key: YOUR_APP_KEY
  monitored_conditions:
    - summary
    - precip_type
    - precip_intensity
    - temperature
    - dew_point
    - wind_speed
    - wind_bearing
    - cloud_cover
    - humidity
    - pressure
    - visibility
    - ozone

Variables:

api_key
*Required
To retrieve this value log into your account at http://forecast.io/. You can
make 1000 requests per day. This means that you could create every 1.4 minute
one.

monitored_conditions
*Required
An array specifying the conditions to monitor.

monitored_conditions
*Required
Conditions to monitor. See the configuration example above for a
list of all available conditions to monitor.

Details for the API : https://developer.forecast.io/docs/v2
"""
import logging
from datetime import timedelta

REQUIREMENTS = ['python-forecastio==1.3.3']

try:
    import forecastio
except ImportError:
    forecastio = None

from homeassistant.util import Throttle
from homeassistant.const import (CONF_API_KEY, TEMP_CELCIUS, TEMP_FAHRENHEIT)
from homeassistant.helpers.entity import Entity

_LOGGER = logging.getLogger(__name__)
SENSOR_TYPES = {
    'summary': ['Summary', ''],
{'fraction_non_alphanumeric': 0.09301544660846206, 'fraction_numerical': 0.006715916722632639, 'mean_word_length': 4.109777015437393, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6260719', 'n_tokens_mistral': 880, 'n_tokens_neox': 851, 'n_words': 296}