Remove inline pylint disables for messages disabled in pylintrc (#14978)
parent
d0cbbe6141
commit
4bd7a7eee3
|
@ -145,7 +145,7 @@ def request_configuration(hass, config, name, host, serialnumber):
|
||||||
|
|
||||||
def setup(hass, config):
|
def setup(hass, config):
|
||||||
"""Set up for Axis devices."""
|
"""Set up for Axis devices."""
|
||||||
def _shutdown(call): # pylint: disable=unused-argument
|
def _shutdown(call):
|
||||||
"""Stop the event stream on shutdown."""
|
"""Stop the event stream on shutdown."""
|
||||||
for serialnumber, device in AXIS_DEVICES.items():
|
for serialnumber, device in AXIS_DEVICES.items():
|
||||||
_LOGGER.info("Stopping event stream for %s.", serialnumber)
|
_LOGGER.info("Stopping event stream for %s.", serialnumber)
|
||||||
|
|
|
@ -35,7 +35,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the Command line Binary Sensor."""
|
"""Set up the Command line Binary Sensor."""
|
||||||
name = config.get(CONF_NAME)
|
name = config.get(CONF_NAME)
|
||||||
|
|
|
@ -23,7 +23,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the GC100 devices."""
|
"""Set up the GC100 devices."""
|
||||||
binary_sensors = []
|
binary_sensors = []
|
||||||
|
|
|
@ -28,7 +28,6 @@ ISY_DEVICE_TYPES = {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config: ConfigType,
|
def setup_platform(hass, config: ConfigType,
|
||||||
add_devices: Callable[[list], None], discovery_info=None):
|
add_devices: Callable[[list], None], discovery_info=None):
|
||||||
"""Set up the ISY994 binary sensor platform."""
|
"""Set up the ISY994 binary sensor platform."""
|
||||||
|
@ -299,7 +298,6 @@ class ISYBinarySensorHeartbeat(ISYDevice, BinarySensorDevice):
|
||||||
# No heartbeat timer is active
|
# No heartbeat timer is active
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
@callback
|
@callback
|
||||||
def timer_elapsed(now) -> None:
|
def timer_elapsed(now) -> None:
|
||||||
"""Heartbeat missed; set state to indicate dead battery."""
|
"""Heartbeat missed; set state to indicate dead battery."""
|
||||||
|
@ -314,7 +312,6 @@ class ISYBinarySensorHeartbeat(ISYDevice, BinarySensorDevice):
|
||||||
self._heartbeat_timer = async_track_point_in_utc_time(
|
self._heartbeat_timer = async_track_point_in_utc_time(
|
||||||
self.hass, timer_elapsed, point_in_time)
|
self.hass, timer_elapsed, point_in_time)
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def on_update(self, event: object) -> None:
|
def on_update(self, event: object) -> None:
|
||||||
"""Ignore node status updates.
|
"""Ignore node status updates.
|
||||||
|
|
||||||
|
|
|
@ -115,7 +115,6 @@ class KNXBinarySensor(BinarySensorDevice):
|
||||||
"""Register callbacks to update hass after device was changed."""
|
"""Register callbacks to update hass after device was changed."""
|
||||||
async def after_update_callback(device):
|
async def after_update_callback(device):
|
||||||
"""Call after device was updated."""
|
"""Call after device was updated."""
|
||||||
# pylint: disable=unused-argument
|
|
||||||
await self.async_update_ha_state()
|
await self.async_update_ha_state()
|
||||||
self.device.register_device_updated_cb(after_update_callback)
|
self.device.register_device_updated_cb(after_update_callback)
|
||||||
|
|
||||||
|
|
|
@ -57,7 +57,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the access to Netatmo binary sensor."""
|
"""Set up the access to Netatmo binary sensor."""
|
||||||
netatmo = hass.components.netatmo
|
netatmo = hass.components.netatmo
|
||||||
|
|
|
@ -33,7 +33,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the available OctoPrint binary sensors."""
|
"""Set up the available OctoPrint binary sensors."""
|
||||||
octoprint_api = hass.data[DOMAIN]["api"]
|
octoprint_api = hass.data[DOMAIN]["api"]
|
||||||
|
|
|
@ -44,7 +44,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up Pilight Binary Sensor."""
|
"""Set up Pilight Binary Sensor."""
|
||||||
disarm = config.get(CONF_DISARM_AFTER_TRIGGER)
|
disarm = config.get(CONF_DISARM_AFTER_TRIGGER)
|
||||||
|
|
|
@ -42,7 +42,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the raspihats binary_sensor devices."""
|
"""Set up the raspihats binary_sensor devices."""
|
||||||
I2CHatBinarySensor.I2C_HATS_MANAGER = hass.data[I2C_HATS_MANAGER]
|
I2CHatBinarySensor.I2C_HATS_MANAGER = hass.data[I2C_HATS_MANAGER]
|
||||||
|
|
|
@ -39,7 +39,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the Raspberry PI GPIO devices."""
|
"""Set up the Raspberry PI GPIO devices."""
|
||||||
pull_mode = config.get(CONF_PULL_MODE)
|
pull_mode = config.get(CONF_PULL_MODE)
|
||||||
|
|
|
@ -57,7 +57,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the trend sensors."""
|
"""Set up the trend sensors."""
|
||||||
sensors = []
|
sensors = []
|
||||||
|
|
|
@ -13,7 +13,7 @@ DEPENDENCIES = ['wemo']
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument, too-many-function-args
|
# pylint: disable=too-many-function-args
|
||||||
def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
def setup_platform(hass, config, add_devices_callback, discovery_info=None):
|
||||||
"""Register discovered WeMo binary sensors."""
|
"""Register discovered WeMo binary sensors."""
|
||||||
import pywemo.discovery as discovery
|
import pywemo.discovery as discovery
|
||||||
|
|
|
@ -34,7 +34,6 @@ CONFIG_SCHEMA = vol.Schema({
|
||||||
}, extra=vol.ALLOW_EXTRA)
|
}, extra=vol.ALLOW_EXTRA)
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup(hass, config):
|
def setup(hass, config):
|
||||||
"""Set up the BloomSky component."""
|
"""Set up the BloomSky component."""
|
||||||
api_key = config[DOMAIN][CONF_API_KEY]
|
api_key = config[DOMAIN][CONF_API_KEY]
|
||||||
|
|
|
@ -60,7 +60,6 @@ def get_date(date):
|
||||||
return dt.as_local(dt.parse_datetime(date['dateTime']))
|
return dt.as_local(dt.parse_datetime(date['dateTime']))
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=too-many-instance-attributes
|
|
||||||
class CalendarEventDevice(Entity):
|
class CalendarEventDevice(Entity):
|
||||||
"""A calendar event device."""
|
"""A calendar event device."""
|
||||||
|
|
||||||
|
@ -68,7 +67,6 @@ class CalendarEventDevice(Entity):
|
||||||
# with an update() method
|
# with an update() method
|
||||||
data = None
|
data = None
|
||||||
|
|
||||||
# pylint: disable=too-many-arguments
|
|
||||||
def __init__(self, hass, data):
|
def __init__(self, hass, data):
|
||||||
"""Create the Calendar Event Device."""
|
"""Create the Calendar Event Device."""
|
||||||
self._name = data.get(CONF_NAME)
|
self._name = data.get(CONF_NAME)
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
# pylint: disable=too-many-lines
|
|
||||||
"""
|
"""
|
||||||
Component to interface with cameras.
|
Component to interface with cameras.
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,6 @@ from homeassistant.components.camera import Camera
|
||||||
DEPENDENCIES = ['bloomsky']
|
DEPENDENCIES = ['bloomsky']
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up access to BloomSky cameras."""
|
"""Set up access to BloomSky cameras."""
|
||||||
bloomsky = hass.components.bloomsky
|
bloomsky = hass.components.bloomsky
|
||||||
|
|
|
@ -33,7 +33,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up a Foscam IP Camera."""
|
"""Set up a Foscam IP Camera."""
|
||||||
add_devices([FoscamCam(config)])
|
add_devices([FoscamCam(config)])
|
||||||
|
|
|
@ -46,7 +46,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
|
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
||||||
"""Set up a generic IP Camera."""
|
"""Set up a generic IP Camera."""
|
||||||
async_add_devices([GenericCamera(hass, config)])
|
async_add_devices([GenericCamera(hass, config)])
|
||||||
|
|
|
@ -42,7 +42,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
|
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
||||||
"""Set up a MJPEG IP Camera."""
|
"""Set up a MJPEG IP Camera."""
|
||||||
if discovery_info:
|
if discovery_info:
|
||||||
|
|
|
@ -29,7 +29,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up access to Netatmo cameras."""
|
"""Set up access to Netatmo cameras."""
|
||||||
netatmo = hass.components.netatmo
|
netatmo = hass.components.netatmo
|
||||||
|
|
|
@ -49,7 +49,6 @@ def _get_image_url(hass, monitor, mode):
|
||||||
|
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
||||||
"""Set up the ZoneMinder cameras."""
|
"""Set up the ZoneMinder cameras."""
|
||||||
cameras = []
|
cameras = []
|
||||||
|
|
|
@ -136,7 +136,6 @@ class KNXClimate(ClimateDevice):
|
||||||
"""Register callbacks to update hass after device was changed."""
|
"""Register callbacks to update hass after device was changed."""
|
||||||
async def after_update_callback(device):
|
async def after_update_callback(device):
|
||||||
"""Call after device was updated."""
|
"""Call after device was updated."""
|
||||||
# pylint: disable=unused-argument
|
|
||||||
await self.async_update_ha_state()
|
await self.async_update_ha_state()
|
||||||
self.device.register_device_updated_cb(after_update_callback)
|
self.device.register_device_updated_cb(after_update_callback)
|
||||||
|
|
||||||
|
|
|
@ -84,7 +84,6 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
add_devices([WinkWaterHeater(water_heater, hass)])
|
add_devices([WinkWaterHeater(water_heater, hass)])
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=abstract-method
|
|
||||||
class WinkThermostat(WinkDevice, ClimateDevice):
|
class WinkThermostat(WinkDevice, ClimateDevice):
|
||||||
"""Representation of a Wink thermostat."""
|
"""Representation of a Wink thermostat."""
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,6 @@ VALUE_TO_STATE = {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config: ConfigType,
|
def setup_platform(hass, config: ConfigType,
|
||||||
add_devices: Callable[[list], None], discovery_info=None):
|
add_devices: Callable[[list], None], discovery_info=None):
|
||||||
"""Set up the ISY994 cover platform."""
|
"""Set up the ISY994 cover platform."""
|
||||||
|
|
|
@ -107,7 +107,6 @@ class KNXCover(CoverDevice):
|
||||||
"""Register callbacks to update hass after device was changed."""
|
"""Register callbacks to update hass after device was changed."""
|
||||||
async def after_update_callback(device):
|
async def after_update_callback(device):
|
||||||
"""Call after device was updated."""
|
"""Call after device was updated."""
|
||||||
# pylint: disable=unused-argument
|
|
||||||
await self.async_update_ha_state()
|
await self.async_update_ha_state()
|
||||||
self.device.register_device_updated_cb(after_update_callback)
|
self.device.register_device_updated_cb(after_update_callback)
|
||||||
|
|
||||||
|
@ -197,7 +196,6 @@ class KNXCover(CoverDevice):
|
||||||
@callback
|
@callback
|
||||||
def auto_updater_hook(self, now):
|
def auto_updater_hook(self, now):
|
||||||
"""Call for the autoupdater."""
|
"""Call for the autoupdater."""
|
||||||
# pylint: disable=unused-argument
|
|
||||||
self.async_schedule_update_ha_state()
|
self.async_schedule_update_ha_state()
|
||||||
if self.device.position_reached():
|
if self.device.position_reached():
|
||||||
self.stop_auto_updater()
|
self.stop_auto_updater()
|
||||||
|
|
|
@ -17,7 +17,6 @@ _LOGGER = logging.getLogger(__name__)
|
||||||
DEPENDENCIES = ['lutron']
|
DEPENDENCIES = ['lutron']
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the Lutron shades."""
|
"""Set up the Lutron shades."""
|
||||||
devs = []
|
devs = []
|
||||||
|
|
|
@ -18,7 +18,6 @@ _LOGGER = logging.getLogger(__name__)
|
||||||
DEPENDENCIES = ['lutron_caseta']
|
DEPENDENCIES = ['lutron_caseta']
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
||||||
"""Set up the Lutron Caseta shades as a cover device."""
|
"""Set up the Lutron Caseta shades as a cover device."""
|
||||||
|
|
|
@ -54,7 +54,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the RPi cover platform."""
|
"""Set up the RPi cover platform."""
|
||||||
relay_time = config.get(CONF_RELAY_TIME)
|
relay_time = config.get(CONF_RELAY_TIME)
|
||||||
|
|
|
@ -31,7 +31,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def get_scanner(hass, config):
|
def get_scanner(hass, config):
|
||||||
"""Validate the configuration and return an Actiontec scanner."""
|
"""Validate the configuration and return an Actiontec scanner."""
|
||||||
scanner = ActiontecDeviceScanner(config[DOMAIN])
|
scanner = ActiontecDeviceScanner(config[DOMAIN])
|
||||||
|
|
|
@ -30,7 +30,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def get_scanner(hass, config):
|
def get_scanner(hass, config):
|
||||||
"""Validate the configuration and return a Aruba scanner."""
|
"""Validate the configuration and return a Aruba scanner."""
|
||||||
scanner = ArubaDeviceScanner(config[DOMAIN])
|
scanner = ArubaDeviceScanner(config[DOMAIN])
|
||||||
|
|
|
@ -78,7 +78,6 @@ _ARP_REGEX = re.compile(
|
||||||
r'.*')
|
r'.*')
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def get_scanner(hass, config):
|
def get_scanner(hass, config):
|
||||||
"""Validate the configuration and return an ASUS-WRT scanner."""
|
"""Validate the configuration and return an ASUS-WRT scanner."""
|
||||||
scanner = AsusWrtDeviceScanner(config[DOMAIN])
|
scanner = AsusWrtDeviceScanner(config[DOMAIN])
|
||||||
|
|
|
@ -26,7 +26,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def get_scanner(hass, config):
|
def get_scanner(hass, config):
|
||||||
"""Return a BT Home Hub 5 scanner if successful."""
|
"""Return a BT Home Hub 5 scanner if successful."""
|
||||||
scanner = BTHomeHub5DeviceScanner(config[DOMAIN])
|
scanner = BTHomeHub5DeviceScanner(config[DOMAIN])
|
||||||
|
|
|
@ -27,7 +27,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def get_scanner(hass, config):
|
def get_scanner(hass, config):
|
||||||
"""Validate the configuration and return a DD-WRT scanner."""
|
"""Validate the configuration and return a DD-WRT scanner."""
|
||||||
try:
|
try:
|
||||||
|
|
|
@ -26,7 +26,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def get_scanner(hass, config):
|
def get_scanner(hass, config):
|
||||||
"""Validate the configuration and return a HUAWEI scanner."""
|
"""Validate the configuration and return a HUAWEI scanner."""
|
||||||
scanner = HuaweiDeviceScanner(config[DOMAIN])
|
scanner = HuaweiDeviceScanner(config[DOMAIN])
|
||||||
|
|
|
@ -23,7 +23,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def get_scanner(hass, config):
|
def get_scanner(hass, config):
|
||||||
"""Return a Sky Hub scanner if successful."""
|
"""Return a Sky Hub scanner if successful."""
|
||||||
scanner = SkyHubDeviceScanner(config[DOMAIN])
|
scanner = SkyHubDeviceScanner(config[DOMAIN])
|
||||||
|
|
|
@ -34,7 +34,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def get_scanner(hass, config):
|
def get_scanner(hass, config):
|
||||||
"""Validate the configuration and return an SNMP scanner."""
|
"""Validate the configuration and return an SNMP scanner."""
|
||||||
scanner = SnmpScanner(config[DOMAIN])
|
scanner = SnmpScanner(config[DOMAIN])
|
||||||
|
|
|
@ -33,7 +33,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def get_scanner(hass, config):
|
def get_scanner(hass, config):
|
||||||
"""Validate the configuration and return a THOMSON scanner."""
|
"""Validate the configuration and return a THOMSON scanner."""
|
||||||
scanner = ThomsonDeviceScanner(config[DOMAIN])
|
scanner = ThomsonDeviceScanner(config[DOMAIN])
|
||||||
|
|
|
@ -33,7 +33,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def get_scanner(hass, config):
|
def get_scanner(hass, config):
|
||||||
"""Validate the configuration and return a Unifi direct scanner."""
|
"""Validate the configuration and return a Unifi direct scanner."""
|
||||||
scanner = UnifiDeviceScanner(config[DOMAIN])
|
scanner = UnifiDeviceScanner(config[DOMAIN])
|
||||||
|
|
|
@ -48,7 +48,6 @@ def request_configuration(network, hass, config):
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def ecobee_configuration_callback(callback_data):
|
def ecobee_configuration_callback(callback_data):
|
||||||
"""Handle configuration callbacks."""
|
"""Handle configuration callbacks."""
|
||||||
network.request_tokens()
|
network.request_tokens()
|
||||||
|
@ -106,7 +105,7 @@ def setup(hass, config):
|
||||||
Will automatically load thermostat and sensor components to support
|
Will automatically load thermostat and sensor components to support
|
||||||
devices discovered on the network.
|
devices discovered on the network.
|
||||||
"""
|
"""
|
||||||
# pylint: disable=global-statement, import-error
|
# pylint: disable=import-error
|
||||||
global NETWORK
|
global NETWORK
|
||||||
|
|
||||||
if 'ecobee' in _CONFIGURING:
|
if 'ecobee' in _CONFIGURING:
|
||||||
|
|
|
@ -13,7 +13,6 @@ FULL_SUPPORT = SUPPORT_SET_SPEED | SUPPORT_OSCILLATE | SUPPORT_DIRECTION
|
||||||
LIMITED_SUPPORT = SUPPORT_SET_SPEED
|
LIMITED_SUPPORT = SUPPORT_SET_SPEED
|
||||||
|
|
||||||
|
|
||||||
# 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):
|
||||||
"""Set up the demo fan platform."""
|
"""Set up the demo fan platform."""
|
||||||
add_devices_callback([
|
add_devices_callback([
|
||||||
|
|
|
@ -30,7 +30,6 @@ for key in VALUE_TO_STATE:
|
||||||
STATE_TO_VALUE[VALUE_TO_STATE[key]] = key
|
STATE_TO_VALUE[VALUE_TO_STATE[key]] = key
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config: ConfigType,
|
def setup_platform(hass, config: ConfigType,
|
||||||
add_devices: Callable[[list], None], discovery_info=None):
|
add_devices: Callable[[list], None], discovery_info=None):
|
||||||
"""Set up the ISY994 fan platform."""
|
"""Set up the ISY994 fan platform."""
|
||||||
|
|
|
@ -314,7 +314,6 @@ SERVICE_TO_METHOD = {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
async def async_setup_platform(hass, config, async_add_devices,
|
async def async_setup_platform(hass, config, async_add_devices,
|
||||||
discovery_info=None):
|
discovery_info=None):
|
||||||
"""Set up the miio fan device from config."""
|
"""Set up the miio fan device from config."""
|
||||||
|
|
|
@ -203,7 +203,7 @@ def device_name_for_push_id(push_id):
|
||||||
|
|
||||||
def setup(hass, config):
|
def setup(hass, config):
|
||||||
"""Set up the iOS component."""
|
"""Set up the iOS component."""
|
||||||
# pylint: disable=global-statement, import-error
|
# pylint: disable=import-error
|
||||||
global CONFIG_FILE
|
global CONFIG_FILE
|
||||||
global CONFIG_FILE_PATH
|
global CONFIG_FILE_PATH
|
||||||
|
|
||||||
|
|
|
@ -425,7 +425,6 @@ class ISYDevice(Entity):
|
||||||
self._control_handler = self._node.controlEvents.subscribe(
|
self._control_handler = self._node.controlEvents.subscribe(
|
||||||
self.on_control)
|
self.on_control)
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def on_update(self, event: object) -> None:
|
def on_update(self, event: object) -> None:
|
||||||
"""Handle the update event from the ISY994 Node."""
|
"""Handle the update event from the ISY994 Node."""
|
||||||
self.schedule_update_ha_state()
|
self.schedule_update_ha_state()
|
||||||
|
|
|
@ -31,7 +31,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up Blinkstick device specified by serial number."""
|
"""Set up Blinkstick device specified by serial number."""
|
||||||
from blinkstick import blinkstick
|
from blinkstick import blinkstick
|
||||||
|
|
|
@ -15,7 +15,6 @@ from homeassistant.helpers.typing import ConfigType
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config: ConfigType,
|
def setup_platform(hass, config: ConfigType,
|
||||||
add_devices: Callable[[list], None], discovery_info=None):
|
add_devices: Callable[[list], None], discovery_info=None):
|
||||||
"""Set up the ISY994 light platform."""
|
"""Set up the ISY994 light platform."""
|
||||||
|
|
|
@ -88,7 +88,6 @@ class KNXLight(Light):
|
||||||
"""Register callbacks to update hass after device was changed."""
|
"""Register callbacks to update hass after device was changed."""
|
||||||
async def after_update_callback(device):
|
async def after_update_callback(device):
|
||||||
"""Call after device was updated."""
|
"""Call after device was updated."""
|
||||||
# pylint: disable=unused-argument
|
|
||||||
await self.async_update_ha_state()
|
await self.async_update_ha_state()
|
||||||
self.device.register_device_updated_cb(after_update_callback)
|
self.device.register_device_updated_cb(after_update_callback)
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the LIFX platform."""
|
"""Set up the LIFX platform."""
|
||||||
server_addr = config.get(CONF_SERVER)
|
server_addr = config.get(CONF_SERVER)
|
||||||
|
@ -118,7 +117,6 @@ class LIFX(object):
|
||||||
bulb.set_power(power)
|
bulb.set_power(power)
|
||||||
bulb.schedule_update_ha_state()
|
bulb.schedule_update_ha_state()
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def poll(self, now):
|
def poll(self, now):
|
||||||
"""Set up polling for the light."""
|
"""Set up polling for the light."""
|
||||||
self.probe()
|
self.probe()
|
||||||
|
|
|
@ -16,7 +16,6 @@ _LOGGER = logging.getLogger(__name__)
|
||||||
DEPENDENCIES = ['lutron']
|
DEPENDENCIES = ['lutron']
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the Lutron lights."""
|
"""Set up the Lutron lights."""
|
||||||
devs = []
|
devs = []
|
||||||
|
|
|
@ -19,7 +19,6 @@ _LOGGER = logging.getLogger(__name__)
|
||||||
DEPENDENCIES = ['lutron_caseta']
|
DEPENDENCIES = ['lutron_caseta']
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
||||||
"""Set up the Lutron Caseta lights."""
|
"""Set up the Lutron Caseta lights."""
|
||||||
|
|
|
@ -15,7 +15,6 @@ from homeassistant.components.tellstick import (
|
||||||
SUPPORT_TELLSTICK = SUPPORT_BRIGHTNESS
|
SUPPORT_TELLSTICK = SUPPORT_BRIGHTNESS
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the Tellstick lights."""
|
"""Set up the Tellstick lights."""
|
||||||
if (discovery_info is None or
|
if (discovery_info is None or
|
||||||
|
|
|
@ -31,7 +31,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the Tikteck platform."""
|
"""Set up the Tikteck platform."""
|
||||||
lights = []
|
lights = []
|
||||||
|
|
|
@ -18,7 +18,6 @@ _LOGGER = logging.getLogger(__name__)
|
||||||
DEPENDENCIES = ['vera']
|
DEPENDENCIES = ['vera']
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the Vera lights."""
|
"""Set up the Vera lights."""
|
||||||
add_devices(
|
add_devices(
|
||||||
|
|
|
@ -100,7 +100,6 @@ SERVICE_TO_METHOD = {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
async def async_setup_platform(hass, config, async_add_devices,
|
async def async_setup_platform(hass, config, async_add_devices,
|
||||||
discovery_info=None):
|
discovery_info=None):
|
||||||
"""Set up the light from config."""
|
"""Set up the light from config."""
|
||||||
|
|
|
@ -30,7 +30,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the Zengge platform."""
|
"""Set up the Zengge platform."""
|
||||||
lights = []
|
lights = []
|
||||||
|
|
|
@ -8,7 +8,6 @@ from homeassistant.components.lock import LockDevice, SUPPORT_OPEN
|
||||||
from homeassistant.const import (STATE_LOCKED, STATE_UNLOCKED)
|
from homeassistant.const import (STATE_LOCKED, STATE_UNLOCKED)
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the Demo lock platform."""
|
"""Set up the Demo lock platform."""
|
||||||
add_devices([
|
add_devices([
|
||||||
|
|
|
@ -21,7 +21,6 @@ VALUE_TO_STATE = {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config: ConfigType,
|
def setup_platform(hass, config: ConfigType,
|
||||||
add_devices: Callable[[list], None], discovery_info=None):
|
add_devices: Callable[[list], None], discovery_info=None):
|
||||||
"""Set up the ISY994 lock platform."""
|
"""Set up the ISY994 lock platform."""
|
||||||
|
|
|
@ -26,7 +26,6 @@ API_STATE_URL = BASE_URL + '/v2/locks/{}?access_token={}'
|
||||||
API_ACTION_URL = BASE_URL + '/v2/locks/{}?access_token={}&state={}'
|
API_ACTION_URL = BASE_URL + '/v2/locks/{}?access_token={}&state={}'
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the Lockitron platform."""
|
"""Set up the Lockitron platform."""
|
||||||
access_token = config.get(CONF_ACCESS_TOKEN)
|
access_token = config.get(CONF_ACCESS_TOKEN)
|
||||||
|
|
|
@ -27,7 +27,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the Nello lock platform."""
|
"""Set up the Nello lock platform."""
|
||||||
from pynello import Nello
|
from pynello import Nello
|
||||||
|
|
|
@ -50,7 +50,6 @@ UNLATCH_SERVICE_SCHEMA = vol.Schema({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the Nuki lock platform."""
|
"""Set up the Nuki lock platform."""
|
||||||
from pynuki import NukiBridge
|
from pynuki import NukiBridge
|
||||||
|
|
|
@ -24,7 +24,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(
|
def setup_platform(
|
||||||
hass, config: ConfigType,
|
hass, config: ConfigType,
|
||||||
add_devices: Callable[[list], None], discovery_info=None):
|
add_devices: Callable[[list], None], discovery_info=None):
|
||||||
|
|
|
@ -12,7 +12,6 @@ from homeassistant.components.volvooncall import VolvoEntity
|
||||||
_LOGGER = logging.getLogger(__name__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the Volvo On Call lock."""
|
"""Set up the Volvo On Call lock."""
|
||||||
if discovery_info is None:
|
if discovery_info is None:
|
||||||
|
|
|
@ -372,7 +372,6 @@ def _exclude_events(events, config):
|
||||||
return filtered_events
|
return filtered_events
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=too-many-return-statements
|
|
||||||
def _entry_message_from_state(domain, state):
|
def _entry_message_from_state(domain, state):
|
||||||
"""Convert a state to a message for the logbook."""
|
"""Convert a state to a message for the logbook."""
|
||||||
# We pass domain in so we don't have to split entity_id again
|
# We pass domain in so we don't have to split entity_id again
|
||||||
|
|
|
@ -59,7 +59,6 @@ SOURCES = {0: 'TV / Antenna',
|
||||||
8: 'PC_IN'}
|
8: 'PC_IN'}
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the Sharp Aquos TV platform."""
|
"""Set up the Sharp Aquos TV platform."""
|
||||||
import sharp_aquos_rc
|
import sharp_aquos_rc
|
||||||
|
@ -104,7 +103,6 @@ def _retry(func):
|
||||||
return wrapper
|
return wrapper
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=abstract-method
|
|
||||||
class SharpAquosTVDevice(MediaPlayerDevice):
|
class SharpAquosTVDevice(MediaPlayerDevice):
|
||||||
"""Representation of a Aquos TV."""
|
"""Representation of a Aquos TV."""
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,6 @@ PLATFORM_SCHEMA = vol.All(
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the Monoprice Blackbird 4k 8x8 HDBaseT Matrix platform."""
|
"""Set up the Monoprice Blackbird 4k 8x8 HDBaseT Matrix platform."""
|
||||||
if DATA_BLACKBIRD not in hass.data:
|
if DATA_BLACKBIRD not in hass.data:
|
||||||
|
|
|
@ -60,7 +60,6 @@ def _get_mac_address(ip_address):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the Sony Bravia TV platform."""
|
"""Set up the Sony Bravia TV platform."""
|
||||||
host = config.get(CONF_HOST)
|
host = config.get(CONF_HOST)
|
||||||
|
|
|
@ -105,7 +105,6 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
class ChannelsPlayer(MediaPlayerDevice):
|
class ChannelsPlayer(MediaPlayerDevice):
|
||||||
"""Representation of a Channels instance."""
|
"""Representation of a Channels instance."""
|
||||||
|
|
||||||
# pylint: disable=too-many-public-methods
|
|
||||||
def __init__(self, name, host, port):
|
def __init__(self, name, host, port):
|
||||||
"""Initialize the Channels app."""
|
"""Initialize the Channels app."""
|
||||||
from pychannels import Channels
|
from pychannels import Channels
|
||||||
|
|
|
@ -43,7 +43,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the Clementine platform."""
|
"""Set up the Clementine platform."""
|
||||||
from clementineremote import ClementineRemote
|
from clementineremote import ClementineRemote
|
||||||
|
|
|
@ -14,7 +14,6 @@ from homeassistant.const import STATE_OFF, STATE_PAUSED, STATE_PLAYING
|
||||||
import homeassistant.util.dt as dt_util
|
import homeassistant.util.dt as dt_util
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the media player demo platform."""
|
"""Set up the media player demo platform."""
|
||||||
add_devices([
|
add_devices([
|
||||||
|
|
|
@ -32,7 +32,6 @@ DUNEHD_PLAYER_SUPPORT = \
|
||||||
SUPPORT_PLAY
|
SUPPORT_PLAY
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the DuneHD media player platform."""
|
"""Set up the DuneHD media player platform."""
|
||||||
from pdunehd import DuneHDPlayer
|
from pdunehd import DuneHDPlayer
|
||||||
|
|
|
@ -43,7 +43,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the FireTV platform."""
|
"""Set up the FireTV platform."""
|
||||||
name = config.get(CONF_NAME)
|
name = config.get(CONF_NAME)
|
||||||
|
|
|
@ -41,7 +41,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
||||||
"""Set up the Frontier Silicon platform."""
|
"""Set up the Frontier Silicon platform."""
|
||||||
|
|
|
@ -59,7 +59,6 @@ def request_configuration(hass, config, url, add_devices_callback):
|
||||||
'method': 'connect',
|
'method': 'connect',
|
||||||
'arguments': ['Home Assistant']}))
|
'arguments': ['Home Assistant']}))
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def gpmdp_configuration_callback(callback_data):
|
def gpmdp_configuration_callback(callback_data):
|
||||||
"""Handle configuration changes."""
|
"""Handle configuration changes."""
|
||||||
while True:
|
while True:
|
||||||
|
|
|
@ -34,7 +34,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the Gstreamer platform."""
|
"""Set up the Gstreamer platform."""
|
||||||
from gsp import GstreamerPlayer
|
from gsp import GstreamerPlayer
|
||||||
|
|
|
@ -43,7 +43,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the LG TV platform."""
|
"""Set up the LG TV platform."""
|
||||||
from pylgnetcast import LgNetCastClient
|
from pylgnetcast import LgNetCastClient
|
||||||
|
|
|
@ -55,7 +55,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the Monoprice 6-zone amplifier platform."""
|
"""Set up the Monoprice 6-zone amplifier platform."""
|
||||||
port = config.get(CONF_PORT)
|
port = config.get(CONF_PORT)
|
||||||
|
|
|
@ -35,7 +35,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the MPC-HC platform."""
|
"""Set up the MPC-HC platform."""
|
||||||
name = config.get(CONF_NAME)
|
name = config.get(CONF_NAME)
|
||||||
|
|
|
@ -46,7 +46,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the MPD platform."""
|
"""Set up the MPD platform."""
|
||||||
host = config.get(CONF_HOST)
|
host = config.get(CONF_HOST)
|
||||||
|
|
|
@ -25,7 +25,6 @@ _LOGGER = logging.getLogger(__name__)
|
||||||
DEVICES = []
|
DEVICES = []
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the Openhome platform."""
|
"""Set up the Openhome platform."""
|
||||||
from openhomedevice.Device import Device
|
from openhomedevice.Device import Device
|
||||||
|
|
|
@ -42,7 +42,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the Panasonic Viera TV platform."""
|
"""Set up the Panasonic Viera TV platform."""
|
||||||
from panasonic_viera import RemoteControl
|
from panasonic_viera import RemoteControl
|
||||||
|
|
|
@ -43,7 +43,6 @@ CURRENT_SONG_PATTERN = re.compile(r'"(.*?)"\s+by\s+"(.*?)"\son\s+"(.*?)"',
|
||||||
STATION_PATTERN = re.compile(r'Station\s"(.+?)"', re.MULTILINE)
|
STATION_PATTERN = re.compile(r'Station\s"(.+?)"', re.MULTILINE)
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the Pandora media player platform."""
|
"""Set up the Pandora media player platform."""
|
||||||
if not _pianobar_exists():
|
if not _pianobar_exists():
|
||||||
|
|
|
@ -48,7 +48,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the Philips TV platform."""
|
"""Set up the Philips TV platform."""
|
||||||
import haphilipsjs
|
import haphilipsjs
|
||||||
|
|
|
@ -47,7 +47,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the Samsung TV platform."""
|
"""Set up the Samsung TV platform."""
|
||||||
known_devices = hass.data.get(KNOWN_DEVICES_KEY)
|
known_devices = hass.data.get(KNOWN_DEVICES_KEY)
|
||||||
|
|
|
@ -46,7 +46,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
||||||
"""Set up the Snapcast platform."""
|
"""Set up the Snapcast platform."""
|
||||||
|
|
|
@ -34,7 +34,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the vlc platform."""
|
"""Set up the vlc platform."""
|
||||||
add_devices([VlcDevice(config.get(CONF_NAME, DEFAULT_NAME),
|
add_devices([VlcDevice(config.get(CONF_NAME, DEFAULT_NAME),
|
||||||
|
|
|
@ -61,7 +61,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the LG WebOS TV platform."""
|
"""Set up the LG WebOS TV platform."""
|
||||||
if discovery_info is not None:
|
if discovery_info is not None:
|
||||||
|
@ -139,7 +138,6 @@ def request_configuration(
|
||||||
_CONFIGURING[host], 'Failed to pair, please try again.')
|
_CONFIGURING[host], 'Failed to pair, please try again.')
|
||||||
return
|
return
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def lgtv_configuration_callback(data):
|
def lgtv_configuration_callback(data):
|
||||||
"""Handle actions when configuration callback is called."""
|
"""Handle actions when configuration callback is called."""
|
||||||
setup_tv(host, name, customize, config, timeout, hass,
|
setup_tv(host, name, customize, config, timeout, hass,
|
||||||
|
|
|
@ -75,11 +75,11 @@ HUB = None
|
||||||
def setup(hass, config):
|
def setup(hass, config):
|
||||||
"""Set up Modbus component."""
|
"""Set up Modbus component."""
|
||||||
# Modbus connection type
|
# Modbus connection type
|
||||||
# pylint: disable=global-statement, import-error
|
# pylint: disable=import-error
|
||||||
client_type = config[DOMAIN][CONF_TYPE]
|
client_type = config[DOMAIN][CONF_TYPE]
|
||||||
|
|
||||||
# Connect to Modbus network
|
# Connect to Modbus network
|
||||||
# pylint: disable=global-statement, import-error
|
# pylint: disable=import-error
|
||||||
|
|
||||||
if client_type == 'serial':
|
if client_type == 'serial':
|
||||||
from pymodbus.client.sync import ModbusSerialClient as ModbusClient
|
from pymodbus.client.sync import ModbusSerialClient as ModbusClient
|
||||||
|
|
|
@ -24,7 +24,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def get_service(hass, config, discovery_info=None):
|
def get_service(hass, config, discovery_info=None):
|
||||||
"""Get the MessageBird notification service."""
|
"""Get the MessageBird notification service."""
|
||||||
import messagebird
|
import messagebird
|
||||||
|
|
|
@ -36,8 +36,6 @@ class MySensorsNotificationDevice(mysensors.MySensorsDevice):
|
||||||
class MySensorsNotificationService(BaseNotificationService):
|
class MySensorsNotificationService(BaseNotificationService):
|
||||||
"""Implement a MySensors notification service."""
|
"""Implement a MySensors notification service."""
|
||||||
|
|
||||||
# pylint: disable=too-few-public-methods
|
|
||||||
|
|
||||||
def __init__(self, hass):
|
def __init__(self, hass):
|
||||||
"""Initialize the service."""
|
"""Initialize the service."""
|
||||||
self.devices = mysensors.get_mysensors_devices(hass, DOMAIN)
|
self.devices = mysensors.get_mysensors_devices(hass, DOMAIN)
|
||||||
|
|
|
@ -86,7 +86,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def get_service(hass, config, discovery_info=None):
|
def get_service(hass, config, discovery_info=None):
|
||||||
"""Get the Notifications for Android TV notification service."""
|
"""Get the Notifications for Android TV notification service."""
|
||||||
remoteip = config.get(CONF_IP)
|
remoteip = config.get(CONF_IP)
|
||||||
|
|
|
@ -29,7 +29,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def get_service(hass, config, discovery_info=None):
|
def get_service(hass, config, discovery_info=None):
|
||||||
"""Get the Pushbullet notification service."""
|
"""Get the Pushbullet notification service."""
|
||||||
from pushbullet import PushBullet
|
from pushbullet import PushBullet
|
||||||
|
|
|
@ -97,7 +97,6 @@ class NuimoThread(threading.Thread):
|
||||||
self._nuimo.disconnect()
|
self._nuimo.disconnect()
|
||||||
self._nuimo = None
|
self._nuimo = None
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def stop(self, event):
|
def stop(self, event):
|
||||||
"""Terminate Thread by unsetting flag."""
|
"""Terminate Thread by unsetting flag."""
|
||||||
_LOGGER.debug('Stopping thread for Nuimo %s', self._mac)
|
_LOGGER.debug('Stopping thread for Nuimo %s', self._mac)
|
||||||
|
|
|
@ -34,7 +34,6 @@ I2C_HAT_NAMES = [
|
||||||
I2C_HATS_MANAGER = 'I2CH_MNG'
|
I2C_HATS_MANAGER = 'I2CH_MNG'
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup(hass, config):
|
def setup(hass, config):
|
||||||
"""Set up the raspihats component."""
|
"""Set up the raspihats component."""
|
||||||
hass.data[I2C_HATS_MANAGER] = I2CHatsManager()
|
hass.data[I2C_HATS_MANAGER] = I2CHatsManager()
|
||||||
|
|
|
@ -8,7 +8,6 @@ from homeassistant.components.remote import RemoteDevice
|
||||||
from homeassistant.const import DEVICE_DEFAULT_NAME
|
from homeassistant.const import DEVICE_DEFAULT_NAME
|
||||||
|
|
||||||
|
|
||||||
# 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):
|
||||||
"""Set up the demo remotes."""
|
"""Set up the demo remotes."""
|
||||||
add_devices_callback([
|
add_devices_callback([
|
||||||
|
|
|
@ -44,7 +44,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the ITach connection and devices."""
|
"""Set up the ITach connection and devices."""
|
||||||
import pyitachip2ir
|
import pyitachip2ir
|
||||||
|
|
|
@ -29,7 +29,6 @@ PLATFORM_SCHEMA = vol.Schema({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
|
||||||
"""Set up the scenes stored in the LIFX Cloud."""
|
"""Set up the scenes stored in the LIFX Cloud."""
|
||||||
|
|
|
@ -41,7 +41,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the available BloomSky weather sensors."""
|
"""Set up the available BloomSky weather sensors."""
|
||||||
bloomsky = hass.components.bloomsky
|
bloomsky = hass.components.bloomsky
|
||||||
|
|
|
@ -47,7 +47,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the Broadlink device sensors."""
|
"""Set up the Broadlink device sensors."""
|
||||||
host = config.get(CONF_HOST)
|
host = config.get(CONF_HOST)
|
||||||
|
|
|
@ -125,7 +125,6 @@ def async_citybikes_request(hass, uri, schema):
|
||||||
raise CityBikesRequestError
|
raise CityBikesRequestError
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def async_setup_platform(hass, config, async_add_devices,
|
def async_setup_platform(hass, config, async_add_devices,
|
||||||
discovery_info=None):
|
discovery_info=None):
|
||||||
|
|
|
@ -35,7 +35,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# pylint: disable=unused-argument
|
|
||||||
def setup_platform(hass, config, add_devices, discovery_info=None):
|
def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||||
"""Set up the Command Sensor."""
|
"""Set up the Command Sensor."""
|
||||||
name = config.get(CONF_NAME)
|
name = config.get(CONF_NAME)
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue