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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion homeassistant/components/aqualogic/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Support for AquaLogic component.

For more details about this platform, please refer to the documentation at
For more details about this component, please refer to the documentation at
https://home-assistant.io/components/aqualogic/
"""
from datetime import timedelta
Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/arduino/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for Arduino boards running with the Firmata firmware.

For more details about this component, please refer to the documentation at
https://home-assistant.io/components/arduino/
"""
"""Support for Arduino boards running with the Firmata firmware."""
import logging

import voluptuous as vol
Expand Down
9 changes: 1 addition & 8 deletions homeassistant/components/arduino/sensor.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
"""
Support for getting information from Arduino pins.

Only analog pins are supported.

For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/sensor.arduino/
"""
"""Support for getting information from Arduino pins."""
import logging

import voluptuous as vol
Expand Down
9 changes: 1 addition & 8 deletions homeassistant/components/arduino/switch.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
"""
Support for switching Arduino pins on and off.

So far only digital pins are supported.

For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/switch.arduino/
"""
"""Support for switching Arduino pins on and off."""
import logging

import voluptuous as vol
Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/arlo/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
This component provides support for Netgear Arlo IP cameras.

For more details about this component, please refer to the documentation at
https://home-assistant.io/components/arlo/
"""
"""Support for Netgear Arlo IP cameras."""
import logging
from datetime import timedelta

Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/arlo/alarm_control_panel.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for Arlo Alarm Control Panels.

For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/alarm_control_panel.arlo/
"""
"""Support for Arlo Alarm Control Panels."""
import logging

import voluptuous as vol
Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/arlo/camera.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for Netgear Arlo IP cameras.

For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/camera.arlo/
"""
"""Support for Netgear Arlo IP cameras."""
import logging

import voluptuous as vol
Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/arlo/sensor.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
This component provides HA sensor for Netgear Arlo IP cameras.

For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/sensor.arlo/
"""
"""Sensor support for Netgear Arlo IP cameras."""
import logging

import voluptuous as vol
Expand Down
16 changes: 5 additions & 11 deletions homeassistant/components/asterisk_mbox/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for Asterisk Voicemail interface.

For more details about this component, please refer to the documentation at
https://home-assistant.io/components/asterisk_mbox/
"""
"""Support for Asterisk Voicemail interface."""
import logging

import voluptuous as vol
Expand Down Expand Up @@ -78,9 +73,8 @@ def _discover_platform(self, component):
@callback
def handle_data(self, command, msg):
"""Handle changes to the mailbox."""
from asterisk_mbox.commands import (CMD_MESSAGE_LIST,
CMD_MESSAGE_CDR_AVAILABLE,
CMD_MESSAGE_CDR)
from asterisk_mbox.commands import (
CMD_MESSAGE_LIST, CMD_MESSAGE_CDR_AVAILABLE, CMD_MESSAGE_CDR)

if command == CMD_MESSAGE_LIST:
_LOGGER.debug("AsteriskVM sent updated message list: Len %d",
Expand All @@ -89,8 +83,8 @@ def handle_data(self, command, msg):
self.messages = sorted(
msg, key=lambda item: item['info']['origtime'], reverse=True)
if not isinstance(old_messages, list):
async_dispatcher_send(self.hass, SIGNAL_DISCOVER_PLATFORM,
DOMAIN)
async_dispatcher_send(
self.hass, SIGNAL_DISCOVER_PLATFORM, DOMAIN)
async_dispatcher_send(self.hass, SIGNAL_MESSAGE_UPDATE,
self.messages)
elif command == CMD_MESSAGE_CDR:
Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/asterisk_mbox/mailbox.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Asterisk Voicemail interface.

For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/mailbox.asteriskvm/
"""
"""Support for the Asterisk Voicemail interface."""
import logging

from homeassistant.components.asterisk_mbox import DOMAIN as ASTERISK_DOMAIN
Expand Down
18 changes: 7 additions & 11 deletions homeassistant/components/asuswrt/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for ASUSWRT devices.

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

import voluptuous as vol
Expand All @@ -18,15 +13,16 @@

_LOGGER = logging.getLogger(__name__)

DOMAIN = "asuswrt"
DATA_ASUSWRT = DOMAIN

CONF_PUB_KEY = 'pub_key'
CONF_SSH_KEY = 'ssh_key'
CONF_REQUIRE_IP = 'require_ip'
CONF_SENSORS = 'sensors'
CONF_SSH_KEY = 'ssh_key'

DOMAIN = "asuswrt"
DATA_ASUSWRT = DOMAIN
Comment thread
fabaff marked this conversation as resolved.
DEFAULT_SSH_PORT = 22

SECRET_GROUP = 'Password or SSH Key'
CONF_SENSORS = 'sensors'
SENSOR_TYPES = ['upload_speed', 'download_speed', 'download', 'upload']

CONFIG_SCHEMA = vol.Schema({
Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/august/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for August devices.

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

Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/august/binary_sensor.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for August binary sensors.

For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/sensor.august/
"""
"""Support for August binary sensors."""
import logging
from datetime import timedelta, datetime

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

For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/camera.august/
"""
"""Support for August camera."""
from datetime import timedelta

import requests
Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/august/lock.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for August lock.

For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/lock.august/
"""
"""Support for August lock."""
import logging
from datetime import timedelta

Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/bbb_gpio/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for controlling GPIO pins of a Beaglebone Black.

For more details about this component, please refer to the documentation at
https://home-assistant.io/components/bbb_gpio/
"""
"""Support for controlling GPIO pins of a Beaglebone Black."""
import logging

from homeassistant.const import (
Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/bbb_gpio/binary_sensor.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for binary sensor using Beaglebone Black GPIO.

For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/binary_sensor.bbb_gpio/
"""
"""Support for binary sensor using Beaglebone Black GPIO."""
import logging

import voluptuous as vol
Expand Down
10 changes: 2 additions & 8 deletions homeassistant/components/bbb_gpio/switch.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Allows to configure a switch using BeagleBone Black GPIO.

For more details about this component, please refer to the documentation at
https://home-assistant.io/components/switch.bbb_gpio/
"""
"""Allows to configure a switch using BeagleBone Black GPIO."""
import logging

import voluptuous as vol
Expand All @@ -29,8 +24,7 @@
})

PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
vol.Required(CONF_PINS, default={}):
vol.Schema({cv.string: PIN_SCHEMA}),
vol.Required(CONF_PINS, default={}): vol.Schema({cv.string: PIN_SCHEMA}),
})


Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/blink/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for Blink Home Camera System.

For more details about this component, please refer to the documentation at
https://home-assistant.io/components/blink/
"""
"""Support for Blink Home Camera System."""
import logging
from datetime import timedelta
import voluptuous as vol
Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/blink/alarm_control_panel.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for Blink Alarm Control Panel.

For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/alarm_control_panel.blink/
"""
"""Support for Blink Alarm Control Panel."""
import logging

from homeassistant.components.alarm_control_panel import AlarmControlPanel
Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/blink/binary_sensor.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for Blink system camera control.

For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/binary_sensor.blink.
"""
"""Support for Blink system camera control."""
from homeassistant.components.blink import BLINK_DATA, BINARY_SENSORS
from homeassistant.components.binary_sensor import BinarySensorDevice
from homeassistant.const import CONF_MONITORED_CONDITIONS
Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/blink/camera.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for Blink system camera.

For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/camera.blink/
"""
"""Support for Blink system camera."""
import logging

from homeassistant.components.blink import BLINK_DATA, DEFAULT_BRAND
Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/blink/sensor.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for Blink system camera sensors.

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

from homeassistant.components.blink import BLINK_DATA, SENSORS
Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/bloomsky/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for BloomSky weather station.

For more details about this component, please refer to the documentation at
https://home-assistant.io/components/bloomsky/
"""
"""Support for BloomSky weather station."""
from datetime import timedelta
import logging

Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/bloomsky/binary_sensor.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support the binary sensors of a BloomSky weather station.

For more details about this component, please refer to the documentation at
https://home-assistant.io/components/binary_sensor.bloomsky/
"""
"""Support the binary sensors of a BloomSky weather station."""
import logging

import voluptuous as vol
Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/bloomsky/camera.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for a camera of a BloomSky weather station.

For more details about this component, please refer to the documentation at
https://home-assistant.io/components/camera.bloomsky/
"""
"""Support for a camera of a BloomSky weather station."""
import logging

import requests
Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/bloomsky/sensor.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support the sensor of a BloomSky weather station.

For more details about this component, please refer to the documentation at
https://home-assistant.io/components/sensor.bloomsky/
"""
"""Support the sensor of a BloomSky weather station."""
import logging

import voluptuous as vol
Expand Down
14 changes: 5 additions & 9 deletions homeassistant/components/browser/__init__.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
"""
Provides functionality to launch a web browser on the host machine.

For more details about this component, please refer to the documentation at
https://home-assistant.io/components/browser/
"""
"""Support for launching a web browser on the host machine."""
import voluptuous as vol

DOMAIN = "browser"
SERVICE_BROWSE_URL = "browse_url"

ATTR_URL = 'url'
ATTR_URL_DEFAULT = 'https://www.google.com'

DOMAIN = 'browser'

SERVICE_BROWSE_URL = 'browse_url'

SERVICE_BROWSE_URL_SCHEMA = vol.Schema({
# pylint: disable=no-value-for-parameter
vol.Required(ATTR_URL, default=ATTR_URL_DEFAULT): vol.Url(),
Expand Down
7 changes: 1 addition & 6 deletions homeassistant/components/calendar/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
"""
Support for Google Calendar event device sensors.

For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/calendar/
"""
"""Support for Google Calendar event device sensors."""
import logging
from datetime import timedelta
import re
Expand Down
Loading