Update file header (#21067)

This commit is contained in:
Fabian Affolter 2019-02-14 20:35:47 +01:00 committed by GitHub
commit 03ec3ac16e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 57 additions and 117 deletions

View File

@ -1,4 +1,4 @@
"""Demo platform that offers a fake water_heater device.""" """Demo platform that offers a fake water heater device."""
from homeassistant.components.water_heater import ( from homeassistant.components.water_heater import (
WaterHeaterDevice, WaterHeaterDevice,
SUPPORT_TARGET_TEMPERATURE, SUPPORT_TARGET_TEMPERATURE,

View File

@ -1,18 +1,13 @@
""" """Weather component that handles meteorological data for your location."""
Weather component that handles meteorological data for your location.
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/weather/
"""
from datetime import timedelta from datetime import timedelta
import logging import logging
from homeassistant.helpers.entity_component import EntityComponent from homeassistant.const import PRECISION_TENTHS, PRECISION_WHOLE, TEMP_CELSIUS
from homeassistant.helpers.temperature import display_temp as show_temp
from homeassistant.const import PRECISION_WHOLE, PRECISION_TENTHS, TEMP_CELSIUS
from homeassistant.helpers.config_validation import ( # noqa from homeassistant.helpers.config_validation import ( # noqa
PLATFORM_SCHEMA, PLATFORM_SCHEMA_BASE) PLATFORM_SCHEMA, PLATFORM_SCHEMA_BASE)
from homeassistant.helpers.entity import Entity from homeassistant.helpers.entity import Entity
from homeassistant.helpers.entity_component import EntityComponent
from homeassistant.helpers.temperature import display_temp as show_temp
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)

View File

@ -1,20 +1,15 @@
""" """Support for Australian BOM (Bureau of Meteorology) weather service."""
Support for Australian BOM (Bureau of Meteorology) weather service.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/weather.bom/
"""
import logging import logging
import voluptuous as vol import voluptuous as vol
from homeassistant.components.weather import WeatherEntity, PLATFORM_SCHEMA
from homeassistant.const import \
CONF_NAME, TEMP_CELSIUS, CONF_LATITUDE, CONF_LONGITUDE
from homeassistant.helpers import config_validation as cv
# Reuse data and API logic from the sensor implementation # Reuse data and API logic from the sensor implementation
from homeassistant.components.sensor.bom import \ from homeassistant.components.sensor.bom import (
BOMCurrentData, closest_station, CONF_STATION, validate_station CONF_STATION, BOMCurrentData, closest_station, validate_station)
from homeassistant.components.weather import PLATFORM_SCHEMA, WeatherEntity
from homeassistant.const import (
CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME, TEMP_CELSIUS)
from homeassistant.helpers import config_validation as cv
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)

View File

@ -1,22 +1,16 @@
""" """Support for Buienradar.nl weather service."""
Support for Buienradar.nl weather service.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/weather.buienradar/
"""
import logging import logging
import voluptuous as vol import voluptuous as vol
from homeassistant.components.weather import (
WeatherEntity, PLATFORM_SCHEMA, ATTR_FORECAST_CONDITION,
ATTR_FORECAST_TEMP, ATTR_FORECAST_TEMP_LOW, ATTR_FORECAST_TIME)
from homeassistant.const import \
CONF_NAME, TEMP_CELSIUS, CONF_LATITUDE, CONF_LONGITUDE
from homeassistant.helpers import config_validation as cv
# Reuse data and API logic from the sensor implementation # Reuse data and API logic from the sensor implementation
from homeassistant.components.sensor.buienradar import ( from homeassistant.components.sensor.buienradar import BrData
BrData) from homeassistant.components.weather import (
ATTR_FORECAST_CONDITION, ATTR_FORECAST_TEMP, ATTR_FORECAST_TEMP_LOW,
ATTR_FORECAST_TIME, PLATFORM_SCHEMA, WeatherEntity)
from homeassistant.const import (
CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME, TEMP_CELSIUS)
from homeassistant.helpers import config_validation as cv
REQUIREMENTS = ['buienradar==0.91'] REQUIREMENTS = ['buienradar==0.91']

View File

@ -1,9 +1,4 @@
""" """Support for retrieving meteorological data from Dark Sky."""
Platform for retrieving meteorological data from Dark Sky.
For more details about this platform, please refer to the documentation
https://home-assistant.io/components/weather.darksky/
"""
from datetime import datetime, timedelta from datetime import datetime, timedelta
import logging import logging
@ -12,13 +7,12 @@ from requests.exceptions import (
import voluptuous as vol import voluptuous as vol
from homeassistant.components.weather import ( from homeassistant.components.weather import (
ATTR_FORECAST_TEMP, ATTR_FORECAST_TIME, ATTR_FORECAST_CONDITION, ATTR_FORECAST_CONDITION, ATTR_FORECAST_PRECIPITATION, ATTR_FORECAST_TEMP,
ATTR_FORECAST_WIND_SPEED, ATTR_FORECAST_WIND_BEARING, ATTR_FORECAST_TEMP_LOW, ATTR_FORECAST_TIME, ATTR_FORECAST_WIND_BEARING,
ATTR_FORECAST_TEMP_LOW, ATTR_FORECAST_PRECIPITATION, ATTR_FORECAST_WIND_SPEED, PLATFORM_SCHEMA, WeatherEntity)
PLATFORM_SCHEMA, WeatherEntity)
from homeassistant.const import ( from homeassistant.const import (
CONF_API_KEY, CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME, TEMP_CELSIUS, CONF_API_KEY, CONF_LATITUDE, CONF_LONGITUDE, CONF_MODE, CONF_NAME,
CONF_MODE, TEMP_FAHRENHEIT) TEMP_CELSIUS, TEMP_FAHRENHEIT)
import homeassistant.helpers.config_validation as cv import homeassistant.helpers.config_validation as cv
from homeassistant.util import Throttle from homeassistant.util import Throttle

View File

@ -1,15 +1,10 @@
""" """Demo platform that offers fake meteorological data."""
Demo platform that offers fake meteorological data.
For more details about this platform, please refer to the documentation
https://home-assistant.io/components/demo/
"""
from datetime import datetime, timedelta from datetime import datetime, timedelta
from homeassistant.components.weather import ( from homeassistant.components.weather import (
WeatherEntity, ATTR_FORECAST_CONDITION, ATTR_FORECAST_PRECIPITATION, ATTR_FORECAST_CONDITION, ATTR_FORECAST_PRECIPITATION, ATTR_FORECAST_TEMP,
ATTR_FORECAST_TEMP, ATTR_FORECAST_TEMP_LOW, ATTR_FORECAST_TIME) ATTR_FORECAST_TEMP_LOW, ATTR_FORECAST_TIME, WeatherEntity)
from homeassistant.const import (TEMP_CELSIUS, TEMP_FAHRENHEIT) from homeassistant.const import TEMP_CELSIUS, TEMP_FAHRENHEIT
CONDITION_CLASSES = { CONDITION_CLASSES = {
'cloudy': [], 'cloudy': [],

View File

@ -1,21 +1,16 @@
""" """Support for Met.no weather service."""
Support for Met.no weather service.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/weather.met/
"""
import logging import logging
from random import randrange from random import randrange
import voluptuous as vol import voluptuous as vol
from homeassistant.components.weather import PLATFORM_SCHEMA, WeatherEntity from homeassistant.components.weather import PLATFORM_SCHEMA, WeatherEntity
from homeassistant.const import (CONF_ELEVATION, CONF_LATITUDE, CONF_LONGITUDE, from homeassistant.const import (
CONF_NAME, TEMP_CELSIUS) CONF_ELEVATION, CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME, TEMP_CELSIUS)
from homeassistant.helpers import config_validation as cv from homeassistant.helpers import config_validation as cv
from homeassistant.helpers.aiohttp_client import async_get_clientsession from homeassistant.helpers.aiohttp_client import async_get_clientsession
from homeassistant.helpers.event import (async_track_utc_time_change, from homeassistant.helpers.event import (
async_call_later) async_call_later, async_track_utc_time_change)
import homeassistant.util.dt as dt_util import homeassistant.util.dt as dt_util
REQUIREMENTS = ['pyMetno==0.4.5'] REQUIREMENTS = ['pyMetno==0.4.5']

View File

@ -1,19 +1,12 @@
""" """Support for Meteo france weather service."""
Support for Meteo france weather service.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/weather.meteo_france/
"""
import logging
from datetime import datetime, timedelta from datetime import datetime, timedelta
import logging
from homeassistant.components.meteo_france import (DATA_METEO_FRANCE, from homeassistant.components.meteo_france import (
CONDITION_CLASSES, ATTRIBUTION, CONDITION_CLASSES, CONF_CITY, DATA_METEO_FRANCE)
CONF_CITY,
ATTRIBUTION)
from homeassistant.components.weather import ( from homeassistant.components.weather import (
WeatherEntity, ATTR_FORECAST_CONDITION, ATTR_FORECAST_CONDITION, ATTR_FORECAST_TEMP, ATTR_FORECAST_TEMP_LOW,
ATTR_FORECAST_TEMP, ATTR_FORECAST_TEMP_LOW, ATTR_FORECAST_TIME) ATTR_FORECAST_TIME, WeatherEntity)
from homeassistant.const import TEMP_CELSIUS from homeassistant.const import TEMP_CELSIUS
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)

View File

@ -1,9 +1,4 @@
""" """Support for UK Met Office weather service."""
Support for UK Met Office weather service.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/weather.metoffice/
"""
import logging import logging
import voluptuous as vol import voluptuous as vol

View File

@ -1,9 +1,4 @@
""" """Support for the OpenWeatherMap (OWM) service."""
Support for the OpenWeatherMap (OWM) service.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/weather.openweathermap/
"""
from datetime import timedelta from datetime import timedelta
import logging import logging
@ -11,12 +6,11 @@ import voluptuous as vol
from homeassistant.components.weather import ( from homeassistant.components.weather import (
ATTR_FORECAST_CONDITION, ATTR_FORECAST_PRECIPITATION, ATTR_FORECAST_TEMP, ATTR_FORECAST_CONDITION, ATTR_FORECAST_PRECIPITATION, ATTR_FORECAST_TEMP,
ATTR_FORECAST_TEMP_LOW, ATTR_FORECAST_TIME, ATTR_FORECAST_WIND_SPEED, ATTR_FORECAST_TEMP_LOW, ATTR_FORECAST_TIME, ATTR_FORECAST_WIND_BEARING,
ATTR_FORECAST_WIND_BEARING, ATTR_FORECAST_WIND_SPEED, PLATFORM_SCHEMA, WeatherEntity)
PLATFORM_SCHEMA, WeatherEntity)
from homeassistant.const import ( from homeassistant.const import (
CONF_API_KEY, TEMP_CELSIUS, CONF_LATITUDE, CONF_LONGITUDE, CONF_MODE, CONF_API_KEY, CONF_LATITUDE, CONF_LONGITUDE, CONF_MODE, CONF_NAME,
CONF_NAME, STATE_UNKNOWN) STATE_UNKNOWN, TEMP_CELSIUS)
import homeassistant.helpers.config_validation as cv import homeassistant.helpers.config_validation as cv
from homeassistant.util import Throttle from homeassistant.util import Throttle

View File

@ -1,9 +1,4 @@
""" """Support for the Yahoo! Weather service."""
Support for the Yahoo! Weather service.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/weather.yweather/
"""
from datetime import timedelta from datetime import timedelta
import logging import logging

View File

@ -1,23 +1,18 @@
""" """Sensor for data from Austrian Zentralanstalt für Meteorologie."""
Sensor for data from Austrian "Zentralanstalt für Meteorologie und Geodynamik".
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/weather.zamg/
"""
import logging import logging
import voluptuous as vol import voluptuous as vol
from homeassistant.components.weather import (
WeatherEntity, ATTR_WEATHER_HUMIDITY, ATTR_WEATHER_PRESSURE,
ATTR_WEATHER_TEMPERATURE, ATTR_WEATHER_WIND_BEARING,
ATTR_WEATHER_WIND_SPEED, PLATFORM_SCHEMA)
from homeassistant.const import (
CONF_NAME, TEMP_CELSIUS, CONF_LATITUDE, CONF_LONGITUDE)
from homeassistant.helpers import config_validation as cv
# Reuse data and API logic from the sensor implementation # Reuse data and API logic from the sensor implementation
from homeassistant.components.sensor.zamg import ( from homeassistant.components.sensor.zamg import (
ATTRIBUTION, closest_station, CONF_STATION_ID, zamg_stations, ZamgData) ATTRIBUTION, CONF_STATION_ID, ZamgData, closest_station, zamg_stations)
from homeassistant.components.weather import (
ATTR_WEATHER_HUMIDITY, ATTR_WEATHER_PRESSURE, ATTR_WEATHER_TEMPERATURE,
ATTR_WEATHER_WIND_BEARING, ATTR_WEATHER_WIND_SPEED, PLATFORM_SCHEMA,
WeatherEntity)
from homeassistant.const import (
CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME, TEMP_CELSIUS)
from homeassistant.helpers import config_validation as cv
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)