Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 1 addition & 6 deletions homeassistant/components/abode/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
This component provides basic support for Abode Home Security system.

For more details about this component, please refer to the documentation at
https://home-assistant.io/components/abode/
"""
"""Support for Abode Home Security system."""
import logging
from functools import partial
from requests.exceptions import HTTPError, ConnectTimeout
Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/abode/alarm_control_panel.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
This component provides HA alarm_control_panel support for Abode System.

For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/alarm_control_panel.abode/
"""
"""Support for Abode Security System alarm control panels."""
import logging

import homeassistant.components.alarm_control_panel as alarm
Expand Down
10 changes: 2 additions & 8 deletions homeassistant/components/abode/binary_sensor.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
"""
This component provides HA binary_sensor support for Abode Security System.

For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/binary_sensor.abode/
"""
"""Support for Abode Security System binary sensors."""
import logging

from homeassistant.components.abode import (AbodeDevice, AbodeAutomation,
DOMAIN as ABODE_DOMAIN)
from homeassistant.components.binary_sensor import BinarySensorDevice

_LOGGER = logging.getLogger(__name__)

DEPENDENCIES = ['abode']

_LOGGER = logging.getLogger(__name__)


def setup_platform(hass, config, add_entities, discovery_info=None):
"""Set up a sensor for an Abode device."""
Expand Down
8 changes: 1 addition & 7 deletions homeassistant/components/abode/camera.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
This component provides HA camera support for Abode Security System.

For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/camera.abode/
"""
"""Support for Abode Security System cameras."""
import logging

from datetime import timedelta
Expand All @@ -13,7 +8,6 @@
from homeassistant.components.camera import Camera
from homeassistant.util import Throttle


DEPENDENCIES = ['abode']

MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=90)
Expand Down
8 changes: 1 addition & 7 deletions homeassistant/components/abode/cover.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
"""
This component provides HA cover support for Abode Security System.

For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/cover.abode/
"""
"""Support for Abode Security System covers."""
import logging

from homeassistant.components.abode import AbodeDevice, DOMAIN as ABODE_DOMAIN
from homeassistant.components.cover import CoverDevice


DEPENDENCIES = ['abode']

_LOGGER = logging.getLogger(__name__)
Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/abode/light.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
This component provides HA light support for Abode Security System.

For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/light.abode/
"""
"""Support for Abode Security System lights."""
import logging
from math import ceil
from homeassistant.components.abode import AbodeDevice, DOMAIN as ABODE_DOMAIN
Expand Down
8 changes: 1 addition & 7 deletions homeassistant/components/abode/lock.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
"""
This component provides HA lock support for Abode Security System.

For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/lock.abode/
"""
"""Support for Abode Security System locks."""
import logging

from homeassistant.components.abode import AbodeDevice, DOMAIN as ABODE_DOMAIN
from homeassistant.components.lock import LockDevice


DEPENDENCIES = ['abode']

_LOGGER = logging.getLogger(__name__)
Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/abode/sensor.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for Abode Security System sensors.

For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/sensor.abode/
"""
"""Support for Abode Security System sensors."""
import logging

from homeassistant.components.abode import AbodeDevice, DOMAIN as ABODE_DOMAIN
Expand Down
10 changes: 2 additions & 8 deletions homeassistant/components/abode/switch.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
"""
This component provides HA switch support for Abode Security System.

For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/switch.abode/
"""
"""Support for Abode Security System switches."""
import logging

from homeassistant.components.abode import (AbodeDevice, AbodeAutomation,
DOMAIN as ABODE_DOMAIN)
from homeassistant.components.switch import SwitchDevice

_LOGGER = logging.getLogger(__name__)

DEPENDENCIES = ['abode']

_LOGGER = logging.getLogger(__name__)


def setup_platform(hass, config, add_entities, discovery_info=None):
"""Set up Abode switch devices."""
Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/ads/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for Automation Device Specification (ADS).

For more details about this component, please refer to the documentation.
https://home-assistant.io/components/ads/
"""
"""Support for Automation Device Specification (ADS)."""
import threading
import struct
import logging
Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/ads/binary_sensor.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for ADS binary sensors.

For more details about this platform, please refer to the documentation.
https://home-assistant.io/components/binary_sensor.ads/
"""
"""Support for ADS binary sensors."""
import logging

import voluptuous as vol
Expand Down
8 changes: 1 addition & 7 deletions homeassistant/components/ads/light.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
"""
Support for ADS light sources.

For more details about this platform, please refer to the documentation.
https://home-assistant.io/components/light.ads/

"""
"""Support for ADS light sources."""
import logging
import voluptuous as vol
from homeassistant.components.light import Light, ATTR_BRIGHTNESS, \
Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/ads/sensor.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for ADS sensors.

For more details about this platform, please refer to the documentation.
https://home-assistant.io/components/sensor.ads/
"""
"""Support for ADS sensors."""
import logging

import voluptuous as vol
Expand Down
11 changes: 3 additions & 8 deletions homeassistant/components/ads/switch.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for ADS switch platform.

For more details about this platform, please refer to the documentation.
https://home-assistant.io/components/switch.ads/
"""
"""Support for ADS switch platform."""
import logging

import voluptuous as vol
Expand Down Expand Up @@ -37,7 +32,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):


class AdsSwitch(ToggleEntity):
"""Representation of an Ads switch device."""
"""Representation of an ADS switch device."""

def __init__(self, ads_hub, name, ads_var):
"""Initialize the AdsSwitch entity."""
Expand All @@ -51,7 +46,7 @@ async def async_added_to_hass(self):
"""Register device notification."""
def update(name, value):
"""Handle device notification."""
_LOGGER.debug('Variable %s changed its value to %d', name, value)
_LOGGER.debug("Variable %s changed its value to %d", name, value)
self._on_state = value
self.schedule_update_ha_state()

Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/alarmdecoder/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for AlarmDecoder devices.

For more details about this component, please refer to the documentation at
https://home-assistant.io/components/alarmdecoder/
"""
"""Support for AlarmDecoder devices."""
import logging

from datetime import timedelta
Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/alarmdecoder/alarm_control_panel.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for AlarmDecoder-based alarm control panels (Honeywell/DSC).

For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/alarm_control_panel.alarmdecoder/
"""
"""Support for AlarmDecoder-based alarm control panels (Honeywell/DSC)."""
import logging

import voluptuous as vol
Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/alarmdecoder/binary_sensor.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for AlarmDecoder zone states- represented as binary sensors.

For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/binary_sensor.alarmdecoder/
"""
"""Support for AlarmDecoder zone states- represented as binary sensors."""
import logging

from homeassistant.components.binary_sensor import BinarySensorDevice
Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/alarmdecoder/sensor.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for AlarmDecoder Sensors (Shows Panel Display).

For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/sensor.alarmdecoder/
"""
"""Support for AlarmDecoder sensors (Shows Panel Display)."""
import logging

from homeassistant.helpers.entity import Entity
Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/alert/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for repeating alerts when conditions are met.

For more details about this component, please refer to the documentation at
https://home-assistant.io/components/alert/
"""
"""Support for repeating alerts when conditions are met."""
import asyncio
import logging
from datetime import datetime, timedelta
Expand Down
9 changes: 2 additions & 7 deletions homeassistant/components/alexa/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for Alexa skill service end point.

For more details about this component, please refer to the documentation at
https://home-assistant.io/components/alexa/
"""
"""Support for Alexa skill service end point."""
import logging

import voluptuous as vol
Expand Down Expand Up @@ -57,7 +52,7 @@


async def async_setup(hass, config):
"""Activate Alexa component."""
"""Activate the Alexa component."""
config = config.get(DOMAIN, {})
flash_briefings_config = config.get(CONF_FLASH_BRIEFINGS)

Expand Down
1 change: 0 additions & 1 deletion homeassistant/components/alexa/auth.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Support for Alexa skill auth."""

import asyncio
import json
import logging
Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/alexa/flash_briefings.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for Alexa skill service end point.

For more details about this component, please refer to the documentation at
https://home-assistant.io/components/alexa/
"""
"""Support for Alexa skill service end point."""
import copy
from datetime import datetime
import logging
Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/alexa/intent.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for Alexa skill service end point.

For more details about this component, please refer to the documentation at
https://home-assistant.io/components/alexa/
"""
"""Support for Alexa skill service end point."""
import enum
import logging

Expand Down
10 changes: 2 additions & 8 deletions homeassistant/components/alexa/smart_home.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
"""Support for alexa Smart Home Skill API.

API documentation:
https://developer.amazon.com/docs/smarthome/understand-the-smart-home-skill-api.html
https://developer.amazon.com/docs/device-apis/message-guide.html
"""

"""Support for alexa Smart Home Skill API."""
import asyncio
from collections import OrderedDict
from datetime import datetime
Expand Down Expand Up @@ -67,7 +61,7 @@
(climate.STATE_OFF, 'OFF'),
(climate.STATE_IDLE, 'OFF'),
(climate.STATE_FAN_ONLY, 'OFF'),
(climate.STATE_DRY, 'OFF')
(climate.STATE_DRY, 'OFF'),
])

SMART_HOME_HTTP_ENDPOINT = '/api/alexa/smart_home'
Expand Down
8 changes: 2 additions & 6 deletions homeassistant/components/ambient_station/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for Ambient Weather Station Service.

For more details about this component, please refer to the documentation at
https://home-assistant.io/components/ambient_station/
"""
"""Support for Ambient Weather Station Service."""
import logging

import voluptuous as vol
Expand All @@ -26,6 +21,7 @@
TYPE_BINARY_SENSOR, TYPE_SENSOR)

REQUIREMENTS = ['aioambient==0.1.1']

_LOGGER = logging.getLogger(__name__)

DATA_CONFIG = 'config'
Expand Down
10 changes: 3 additions & 7 deletions homeassistant/components/ambient_station/binary_sensor.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for Ambient Weather Station binary sensors.

For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/binary_sensor.ambient_station/
"""
"""Support for Ambient Weather Station binary sensors."""
import logging

from homeassistant.components.ambient_station import (
Expand All @@ -15,9 +10,10 @@

from .const import ATTR_LAST_DATA, DATA_CLIENT, DOMAIN, TYPE_BINARY_SENSOR

DEPENDENCIES = ['ambient_station']
_LOGGER = logging.getLogger(__name__)

DEPENDENCIES = ['ambient_station']


async def async_setup_platform(
hass, config, async_add_entities, discovery_info=None):
Expand Down
1 change: 0 additions & 1 deletion homeassistant/components/ambient_station/config_flow.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Config flow to configure the Ambient PWS component."""

import voluptuous as vol

from homeassistant import config_entries
Expand Down
Loading