Skip to content

Commit

Permalink
Update file header (#21067)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff committed Feb 14, 2019
2 parents c5de32e + dc62cb6 commit 03ec3ac
Show file tree
Hide file tree
Showing 12 changed files with 55 additions and 115 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/water_heater/demo.py
Original file line number Diff line number Diff line change
@@ -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 (
WaterHeaterDevice,
SUPPORT_TARGET_TEMPERATURE,
Expand Down
13 changes: 4 additions & 9 deletions homeassistant/components/weather/__init__.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
"""
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/
"""
"""Weather component that handles meteorological data for your location."""
from datetime import timedelta
import logging

from homeassistant.helpers.entity_component import EntityComponent
from homeassistant.helpers.temperature import display_temp as show_temp
from homeassistant.const import PRECISION_WHOLE, PRECISION_TENTHS, TEMP_CELSIUS
from homeassistant.const import PRECISION_TENTHS, PRECISION_WHOLE, TEMP_CELSIUS
from homeassistant.helpers.config_validation import ( # noqa
PLATFORM_SCHEMA, PLATFORM_SCHEMA_BASE)
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__)

Expand Down
19 changes: 7 additions & 12 deletions homeassistant/components/weather/bom.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
"""
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/
"""
"""Support for Australian BOM (Bureau of Meteorology) weather service."""
import logging

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
from homeassistant.components.sensor.bom import \
BOMCurrentData, closest_station, CONF_STATION, validate_station
from homeassistant.components.sensor.bom import (
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__)

Expand Down
20 changes: 7 additions & 13 deletions homeassistant/components/weather/buienradar.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
"""
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/
"""
"""Support for Buienradar.nl weather service."""
import logging

import voluptuous as vol

# Reuse data and API logic from the sensor implementation
from homeassistant.components.sensor.buienradar import BrData
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
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
# Reuse data and API logic from the sensor implementation
from homeassistant.components.sensor.buienradar import (
BrData)

REQUIREMENTS = ['buienradar==0.91']

Expand Down
18 changes: 6 additions & 12 deletions homeassistant/components/weather/darksky.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
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/
"""
"""Support for retrieving meteorological data from Dark Sky."""
from datetime import datetime, timedelta
import logging

Expand All @@ -12,13 +7,12 @@
import voluptuous as vol

from homeassistant.components.weather import (
ATTR_FORECAST_TEMP, ATTR_FORECAST_TIME, ATTR_FORECAST_CONDITION,
ATTR_FORECAST_WIND_SPEED, ATTR_FORECAST_WIND_BEARING,
ATTR_FORECAST_TEMP_LOW, ATTR_FORECAST_PRECIPITATION,
PLATFORM_SCHEMA, WeatherEntity)
ATTR_FORECAST_CONDITION, ATTR_FORECAST_PRECIPITATION, ATTR_FORECAST_TEMP,
ATTR_FORECAST_TEMP_LOW, ATTR_FORECAST_TIME, ATTR_FORECAST_WIND_BEARING,
ATTR_FORECAST_WIND_SPEED, PLATFORM_SCHEMA, WeatherEntity)
from homeassistant.const import (
CONF_API_KEY, CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME, TEMP_CELSIUS,
CONF_MODE, TEMP_FAHRENHEIT)
CONF_API_KEY, CONF_LATITUDE, CONF_LONGITUDE, CONF_MODE, CONF_NAME,
TEMP_CELSIUS, TEMP_FAHRENHEIT)
import homeassistant.helpers.config_validation as cv
from homeassistant.util import Throttle

Expand Down
13 changes: 4 additions & 9 deletions homeassistant/components/weather/demo.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
"""
Demo platform that offers fake meteorological data.
For more details about this platform, please refer to the documentation
https://home-assistant.io/components/demo/
"""
"""Demo platform that offers fake meteorological data."""
from datetime import datetime, timedelta

from homeassistant.components.weather import (
WeatherEntity, ATTR_FORECAST_CONDITION, ATTR_FORECAST_PRECIPITATION,
ATTR_FORECAST_TEMP, ATTR_FORECAST_TEMP_LOW, ATTR_FORECAST_TIME)
from homeassistant.const import (TEMP_CELSIUS, TEMP_FAHRENHEIT)
ATTR_FORECAST_CONDITION, ATTR_FORECAST_PRECIPITATION, ATTR_FORECAST_TEMP,
ATTR_FORECAST_TEMP_LOW, ATTR_FORECAST_TIME, WeatherEntity)
from homeassistant.const import TEMP_CELSIUS, TEMP_FAHRENHEIT

CONDITION_CLASSES = {
'cloudy': [],
Expand Down
15 changes: 5 additions & 10 deletions homeassistant/components/weather/met.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
"""
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/
"""
"""Support for Met.no weather service."""
import logging
from random import randrange

import voluptuous as vol

from homeassistant.components.weather import PLATFORM_SCHEMA, WeatherEntity
from homeassistant.const import (CONF_ELEVATION, CONF_LATITUDE, CONF_LONGITUDE,
CONF_NAME, TEMP_CELSIUS)
from homeassistant.const import (
CONF_ELEVATION, CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME, TEMP_CELSIUS)
from homeassistant.helpers import config_validation as cv
from homeassistant.helpers.aiohttp_client import async_get_clientsession
from homeassistant.helpers.event import (async_track_utc_time_change,
async_call_later)
from homeassistant.helpers.event import (
async_call_later, async_track_utc_time_change)
import homeassistant.util.dt as dt_util

REQUIREMENTS = ['pyMetno==0.4.5']
Expand Down
19 changes: 6 additions & 13 deletions homeassistant/components/weather/meteo_france.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
"""
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
"""Support for Meteo france weather service."""
from datetime import datetime, timedelta
import logging

from homeassistant.components.meteo_france import (DATA_METEO_FRANCE,
CONDITION_CLASSES,
CONF_CITY,
ATTRIBUTION)
from homeassistant.components.meteo_france import (
ATTRIBUTION, CONDITION_CLASSES, CONF_CITY, DATA_METEO_FRANCE)
from homeassistant.components.weather import (
WeatherEntity, ATTR_FORECAST_CONDITION,
ATTR_FORECAST_TEMP, ATTR_FORECAST_TEMP_LOW, ATTR_FORECAST_TIME)
ATTR_FORECAST_CONDITION, ATTR_FORECAST_TEMP, ATTR_FORECAST_TEMP_LOW,
ATTR_FORECAST_TIME, WeatherEntity)
from homeassistant.const import TEMP_CELSIUS

_LOGGER = logging.getLogger(__name__)
Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/weather/metoffice.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
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/
"""
"""Support for UK Met Office weather service."""
import logging

import voluptuous as vol
Expand Down
16 changes: 5 additions & 11 deletions homeassistant/components/weather/openweathermap.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
"""
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/
"""
"""Support for the OpenWeatherMap (OWM) service."""
from datetime import timedelta
import logging

import voluptuous as vol

from homeassistant.components.weather import (
ATTR_FORECAST_CONDITION, ATTR_FORECAST_PRECIPITATION, ATTR_FORECAST_TEMP,
ATTR_FORECAST_TEMP_LOW, ATTR_FORECAST_TIME, ATTR_FORECAST_WIND_SPEED,
ATTR_FORECAST_WIND_BEARING,
PLATFORM_SCHEMA, WeatherEntity)
ATTR_FORECAST_TEMP_LOW, ATTR_FORECAST_TIME, ATTR_FORECAST_WIND_BEARING,
ATTR_FORECAST_WIND_SPEED, PLATFORM_SCHEMA, WeatherEntity)
from homeassistant.const import (
CONF_API_KEY, TEMP_CELSIUS, CONF_LATITUDE, CONF_LONGITUDE, CONF_MODE,
CONF_NAME, STATE_UNKNOWN)
CONF_API_KEY, CONF_LATITUDE, CONF_LONGITUDE, CONF_MODE, CONF_NAME,
STATE_UNKNOWN, TEMP_CELSIUS)
import homeassistant.helpers.config_validation as cv
from homeassistant.util import Throttle

Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/weather/yweather.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
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/
"""
"""Support for the Yahoo! Weather service."""
from datetime import timedelta
import logging

Expand Down
21 changes: 8 additions & 13 deletions homeassistant/components/weather/zamg.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
"""
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/
"""
"""Sensor for data from Austrian Zentralanstalt für Meteorologie."""
import logging

import voluptuous as vol

# Reuse data and API logic from the sensor implementation
from homeassistant.components.sensor.zamg import (
ATTRIBUTION, CONF_STATION_ID, ZamgData, closest_station, zamg_stations)
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)
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_NAME, TEMP_CELSIUS, CONF_LATITUDE, CONF_LONGITUDE)
CONF_LATITUDE, CONF_LONGITUDE, CONF_NAME, TEMP_CELSIUS)
from homeassistant.helpers import config_validation as cv
# Reuse data and API logic from the sensor implementation
from homeassistant.components.sensor.zamg import (
ATTRIBUTION, closest_station, CONF_STATION_ID, zamg_stations, ZamgData)

_LOGGER = logging.getLogger(__name__)

Expand Down

0 comments on commit 03ec3ac

Please sign in to comment.