mirror of
https://github.com/home-assistant/core.git
synced 2025-07-29 08:07:45 +00:00
remove some blank lines
This commit is contained in:
parent
2eb3a5af3b
commit
8029d3e592
@ -1,7 +1,6 @@
|
|||||||
"""
|
"""
|
||||||
homeassistant.components.switch.transmission
|
homeassistant.components.switch.transmission
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Enable or disable Transmission BitTorrent client Turtle Mode
|
Enable or disable Transmission BitTorrent client Turtle Mode
|
||||||
|
|
||||||
Configuration:
|
Configuration:
|
||||||
@ -38,19 +37,14 @@ Your Transmission username, if you use authentication
|
|||||||
name
|
name
|
||||||
*Optional
|
*Optional
|
||||||
The name to use when displaying this Transmission instance.
|
The name to use when displaying this Transmission instance.
|
||||||
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from homeassistant.const import CONF_HOST, CONF_USERNAME, CONF_PASSWORD
|
from homeassistant.const import CONF_HOST, CONF_USERNAME, CONF_PASSWORD
|
||||||
from homeassistant.const import STATE_ON, STATE_OFF
|
from homeassistant.const import STATE_ON, STATE_OFF
|
||||||
|
|
||||||
from homeassistant.helpers.entity import ToggleEntity
|
from homeassistant.helpers.entity import ToggleEntity
|
||||||
# pylint: disable=no-name-in-module, import-error
|
# pylint: disable=no-name-in-module, import-error
|
||||||
import transmissionrpc
|
import transmissionrpc
|
||||||
|
|
||||||
from transmissionrpc.error import TransmissionError
|
from transmissionrpc.error import TransmissionError
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
_LOGGING = logging.getLogger(__name__)
|
_LOGGING = logging.getLogger(__name__)
|
||||||
@ -59,7 +53,7 @@ REQUIREMENTS = ['transmissionrpc>=0.11']
|
|||||||
|
|
||||||
# pylint: disable=unused-argument
|
# pylint: disable=unused-argument
|
||||||
def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
||||||
""" Sets up the sensors. """
|
""" Sets up the transmission sensor. """
|
||||||
host = config.get(CONF_HOST)
|
host = config.get(CONF_HOST)
|
||||||
username = config.get(CONF_USERNAME, None)
|
username = config.get(CONF_USERNAME, None)
|
||||||
password = config.get(CONF_PASSWORD, None)
|
password = config.get(CONF_PASSWORD, None)
|
||||||
@ -87,7 +81,6 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
|||||||
|
|
||||||
|
|
||||||
class TransmissionSwitch(ToggleEntity):
|
class TransmissionSwitch(ToggleEntity):
|
||||||
|
|
||||||
""" A Transmission sensor. """
|
""" A Transmission sensor. """
|
||||||
|
|
||||||
def __init__(self, transmission_client, name):
|
def __init__(self, transmission_client, name):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user