diff --git a/homeassistant/components/axis.py b/homeassistant/components/axis.py index 9906c61f2694cf73dae2d17b876c5c26e59d16bf..71894364f914402ba20d4340fdc55cc8c3e4ff52 100644 --- a/homeassistant/components/axis.py +++ b/homeassistant/components/axis.py @@ -145,7 +145,7 @@ def request_configuration(hass, config, name, host, serialnumber): def setup(hass, config): """Set up for Axis devices.""" - def _shutdown(call): # pylint: disable=unused-argument + def _shutdown(call): """Stop the event stream on shutdown.""" for serialnumber, device in AXIS_DEVICES.items(): _LOGGER.info("Stopping event stream for %s.", serialnumber) diff --git a/homeassistant/components/binary_sensor/command_line.py b/homeassistant/components/binary_sensor/command_line.py index 2289ad5d9064ec7fed1af054b4f30447c347ece4..480786b2c2c8a78d589fd655d61266915e1531d1 100644 --- a/homeassistant/components/binary_sensor/command_line.py +++ b/homeassistant/components/binary_sensor/command_line.py @@ -35,7 +35,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Command line Binary Sensor.""" name = config.get(CONF_NAME) diff --git a/homeassistant/components/binary_sensor/gc100.py b/homeassistant/components/binary_sensor/gc100.py index c17e6b50911401689dac9a47a58b0c5de8bd8ed2..767be2874e6ab839abdbdcd9a53ab74fdc0ef11d 100644 --- a/homeassistant/components/binary_sensor/gc100.py +++ b/homeassistant/components/binary_sensor/gc100.py @@ -23,7 +23,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the GC100 devices.""" binary_sensors = [] diff --git a/homeassistant/components/binary_sensor/isy994.py b/homeassistant/components/binary_sensor/isy994.py index 09f1739cba780445f8af6713f8890be60253de2a..a80e4db747d505d02f29a56cc42ded8399427953 100644 --- a/homeassistant/components/binary_sensor/isy994.py +++ b/homeassistant/components/binary_sensor/isy994.py @@ -28,7 +28,6 @@ ISY_DEVICE_TYPES = { } -# pylint: disable=unused-argument def setup_platform(hass, config: ConfigType, add_devices: Callable[[list], None], discovery_info=None): """Set up the ISY994 binary sensor platform.""" @@ -299,7 +298,6 @@ class ISYBinarySensorHeartbeat(ISYDevice, BinarySensorDevice): # No heartbeat timer is active pass - # pylint: disable=unused-argument @callback def timer_elapsed(now) -> None: """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.hass, timer_elapsed, point_in_time) - # pylint: disable=unused-argument def on_update(self, event: object) -> None: """Ignore node status updates. diff --git a/homeassistant/components/binary_sensor/knx.py b/homeassistant/components/binary_sensor/knx.py index 834186b8b185e119c9315b5ccb3bf05405761a65..e6b28047cb8f2fd1d93876e11159bceb79df1b64 100644 --- a/homeassistant/components/binary_sensor/knx.py +++ b/homeassistant/components/binary_sensor/knx.py @@ -115,7 +115,6 @@ class KNXBinarySensor(BinarySensorDevice): """Register callbacks to update hass after device was changed.""" async def after_update_callback(device): """Call after device was updated.""" - # pylint: disable=unused-argument await self.async_update_ha_state() self.device.register_device_updated_cb(after_update_callback) diff --git a/homeassistant/components/binary_sensor/netatmo.py b/homeassistant/components/binary_sensor/netatmo.py index 10fc2ccc3ff54258853530f429df6af7ae53512e..7c3a3e1dd306b984f6fe3f0e7795d15e46b6405b 100644 --- a/homeassistant/components/binary_sensor/netatmo.py +++ b/homeassistant/components/binary_sensor/netatmo.py @@ -57,7 +57,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the access to Netatmo binary sensor.""" netatmo = hass.components.netatmo diff --git a/homeassistant/components/binary_sensor/octoprint.py b/homeassistant/components/binary_sensor/octoprint.py index 265fcec66fa9c779432793b76e71401f77ee6f1e..1a1967b9014a0b704724c06aecef9ca35205fdc1 100644 --- a/homeassistant/components/binary_sensor/octoprint.py +++ b/homeassistant/components/binary_sensor/octoprint.py @@ -33,7 +33,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the available OctoPrint binary sensors.""" octoprint_api = hass.data[DOMAIN]["api"] diff --git a/homeassistant/components/binary_sensor/pilight.py b/homeassistant/components/binary_sensor/pilight.py index d2c46c795a8530782cbdc0ce8ee3c90ae202669a..69dc3b834855c19e01e02723b1c25b44c6938cc3 100644 --- a/homeassistant/components/binary_sensor/pilight.py +++ b/homeassistant/components/binary_sensor/pilight.py @@ -44,7 +44,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up Pilight Binary Sensor.""" disarm = config.get(CONF_DISARM_AFTER_TRIGGER) diff --git a/homeassistant/components/binary_sensor/raspihats.py b/homeassistant/components/binary_sensor/raspihats.py index 9d489a59711a3f886d599893c55bd579478eaea1..9ab56a5a20da75f88b62ba443e3cd1938daf2bcf 100644 --- a/homeassistant/components/binary_sensor/raspihats.py +++ b/homeassistant/components/binary_sensor/raspihats.py @@ -42,7 +42,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the raspihats binary_sensor devices.""" I2CHatBinarySensor.I2C_HATS_MANAGER = hass.data[I2C_HATS_MANAGER] diff --git a/homeassistant/components/binary_sensor/rpi_gpio.py b/homeassistant/components/binary_sensor/rpi_gpio.py index 2322b1bf49845b2045cd61b0419974ae2f2b18cc..e1e06ce57b9612aeeceaf4e82dbb49eb8584061e 100644 --- a/homeassistant/components/binary_sensor/rpi_gpio.py +++ b/homeassistant/components/binary_sensor/rpi_gpio.py @@ -39,7 +39,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Raspberry PI GPIO devices.""" pull_mode = config.get(CONF_PULL_MODE) diff --git a/homeassistant/components/binary_sensor/trend.py b/homeassistant/components/binary_sensor/trend.py index 5405a6a77ba57dd6bc0d504752e8d02df6e41123..dcdd312ce814f7d63baa157200f789945fb28fde 100644 --- a/homeassistant/components/binary_sensor/trend.py +++ b/homeassistant/components/binary_sensor/trend.py @@ -57,7 +57,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the trend sensors.""" sensors = [] diff --git a/homeassistant/components/binary_sensor/wemo.py b/homeassistant/components/binary_sensor/wemo.py index 30a7e291401bc0cb37fcdfbc552b3ac54566c01c..d3c78597c70bc78bd9af2840ae714fa53f6633d3 100644 --- a/homeassistant/components/binary_sensor/wemo.py +++ b/homeassistant/components/binary_sensor/wemo.py @@ -13,7 +13,7 @@ DEPENDENCIES = ['wemo'] _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): """Register discovered WeMo binary sensors.""" import pywemo.discovery as discovery diff --git a/homeassistant/components/bloomsky.py b/homeassistant/components/bloomsky.py index f04e0af7be9aba54811e127fef3d043f515f35f8..bc9d3acf54fe60e19ae2dd0a85b772e684383b78 100644 --- a/homeassistant/components/bloomsky.py +++ b/homeassistant/components/bloomsky.py @@ -34,7 +34,6 @@ CONFIG_SCHEMA = vol.Schema({ }, extra=vol.ALLOW_EXTRA) -# pylint: disable=unused-argument def setup(hass, config): """Set up the BloomSky component.""" api_key = config[DOMAIN][CONF_API_KEY] diff --git a/homeassistant/components/calendar/__init__.py b/homeassistant/components/calendar/__init__.py index 65e5e33c7c1f68e9593e2cf0dde7a7e6815dc284..9716e46bc032af781ce5817f296806d23c0a8675 100644 --- a/homeassistant/components/calendar/__init__.py +++ b/homeassistant/components/calendar/__init__.py @@ -60,7 +60,6 @@ def get_date(date): return dt.as_local(dt.parse_datetime(date['dateTime'])) -# pylint: disable=too-many-instance-attributes class CalendarEventDevice(Entity): """A calendar event device.""" @@ -68,7 +67,6 @@ class CalendarEventDevice(Entity): # with an update() method data = None - # pylint: disable=too-many-arguments def __init__(self, hass, data): """Create the Calendar Event Device.""" self._name = data.get(CONF_NAME) diff --git a/homeassistant/components/camera/__init__.py b/homeassistant/components/camera/__init__.py index f2f4081fb6dc2be9d093eedcea142fdaf5880d3d..c41020c3faf1127891c7a38d534f10f496461cc8 100644 --- a/homeassistant/components/camera/__init__.py +++ b/homeassistant/components/camera/__init__.py @@ -1,4 +1,3 @@ -# pylint: disable=too-many-lines """ Component to interface with cameras. diff --git a/homeassistant/components/camera/bloomsky.py b/homeassistant/components/camera/bloomsky.py index ef70692215dfbd3b348c52e884d5d0ae52c9de87..775289926745e6fea094f6ab4b696f6e8c947761 100644 --- a/homeassistant/components/camera/bloomsky.py +++ b/homeassistant/components/camera/bloomsky.py @@ -13,7 +13,6 @@ from homeassistant.components.camera import Camera DEPENDENCIES = ['bloomsky'] -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up access to BloomSky cameras.""" bloomsky = hass.components.bloomsky diff --git a/homeassistant/components/camera/foscam.py b/homeassistant/components/camera/foscam.py index 15db83d345a93e46a349084fa67e131c997d20e1..4ea733139a90b66c71f29964958b67785c15b176 100644 --- a/homeassistant/components/camera/foscam.py +++ b/homeassistant/components/camera/foscam.py @@ -33,7 +33,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up a Foscam IP Camera.""" add_devices([FoscamCam(config)]) diff --git a/homeassistant/components/camera/generic.py b/homeassistant/components/camera/generic.py index e11bd599e45e704fcfa8f01307021523d1974dd4..911c14e72325b00f33e16d36ff52d31c30b16ea8 100644 --- a/homeassistant/components/camera/generic.py +++ b/homeassistant/components/camera/generic.py @@ -46,7 +46,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ @asyncio.coroutine -# pylint: disable=unused-argument def async_setup_platform(hass, config, async_add_devices, discovery_info=None): """Set up a generic IP Camera.""" async_add_devices([GenericCamera(hass, config)]) diff --git a/homeassistant/components/camera/mjpeg.py b/homeassistant/components/camera/mjpeg.py index 35d30104f6e66dcfcd26a179a12fb3e29e016e5b..a5ed0cdc02c49240d0ca2c2f60a19a1dae529c45 100644 --- a/homeassistant/components/camera/mjpeg.py +++ b/homeassistant/components/camera/mjpeg.py @@ -42,7 +42,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ @asyncio.coroutine -# pylint: disable=unused-argument def async_setup_platform(hass, config, async_add_devices, discovery_info=None): """Set up a MJPEG IP Camera.""" if discovery_info: diff --git a/homeassistant/components/camera/netatmo.py b/homeassistant/components/camera/netatmo.py index 5b8effd5dcc0c5eb5521d8fdc6e9ab2e18509ec0..34a78e19f9fce1a5d5dee5d03ba23af2b8f0956b 100644 --- a/homeassistant/components/camera/netatmo.py +++ b/homeassistant/components/camera/netatmo.py @@ -29,7 +29,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up access to Netatmo cameras.""" netatmo = hass.components.netatmo diff --git a/homeassistant/components/camera/zoneminder.py b/homeassistant/components/camera/zoneminder.py index a98e3ef066fbee9120b35b4206bc300ca13fc636..90ef08c24feba2292de9bccc79568c3cf8278da6 100644 --- a/homeassistant/components/camera/zoneminder.py +++ b/homeassistant/components/camera/zoneminder.py @@ -49,7 +49,6 @@ def _get_image_url(hass, monitor, mode): @asyncio.coroutine -# pylint: disable=unused-argument def async_setup_platform(hass, config, async_add_devices, discovery_info=None): """Set up the ZoneMinder cameras.""" cameras = [] diff --git a/homeassistant/components/climate/knx.py b/homeassistant/components/climate/knx.py index 5ce6cc2fa7af0ac50ea140abe2dc0df7ef1e0b27..f53cf2491dc5c5d6259352f8f4b6833741f2fca2 100644 --- a/homeassistant/components/climate/knx.py +++ b/homeassistant/components/climate/knx.py @@ -136,7 +136,6 @@ class KNXClimate(ClimateDevice): """Register callbacks to update hass after device was changed.""" async def after_update_callback(device): """Call after device was updated.""" - # pylint: disable=unused-argument await self.async_update_ha_state() self.device.register_device_updated_cb(after_update_callback) diff --git a/homeassistant/components/climate/wink.py b/homeassistant/components/climate/wink.py index c67e032c14947d2677f88457e2090c5453a0dc42..12a6960f8334b7b13a4cfaddc60883603e8ed90d 100644 --- a/homeassistant/components/climate/wink.py +++ b/homeassistant/components/climate/wink.py @@ -84,7 +84,6 @@ def setup_platform(hass, config, add_devices, discovery_info=None): add_devices([WinkWaterHeater(water_heater, hass)]) -# pylint: disable=abstract-method class WinkThermostat(WinkDevice, ClimateDevice): """Representation of a Wink thermostat.""" diff --git a/homeassistant/components/cover/isy994.py b/homeassistant/components/cover/isy994.py index 82ca60e84e6c914297b81d8f1bf03e2c069c0281..743a36d41d5084d85a960edb844d1e0896d6052e 100644 --- a/homeassistant/components/cover/isy994.py +++ b/homeassistant/components/cover/isy994.py @@ -25,7 +25,6 @@ VALUE_TO_STATE = { } -# pylint: disable=unused-argument def setup_platform(hass, config: ConfigType, add_devices: Callable[[list], None], discovery_info=None): """Set up the ISY994 cover platform.""" diff --git a/homeassistant/components/cover/knx.py b/homeassistant/components/cover/knx.py index 83668924268e0d853a87fa1478332b81609c1382..7bb20e4cf1f2cf1290c1b90092e756484c861257 100644 --- a/homeassistant/components/cover/knx.py +++ b/homeassistant/components/cover/knx.py @@ -107,7 +107,6 @@ class KNXCover(CoverDevice): """Register callbacks to update hass after device was changed.""" async def after_update_callback(device): """Call after device was updated.""" - # pylint: disable=unused-argument await self.async_update_ha_state() self.device.register_device_updated_cb(after_update_callback) @@ -197,7 +196,6 @@ class KNXCover(CoverDevice): @callback def auto_updater_hook(self, now): """Call for the autoupdater.""" - # pylint: disable=unused-argument self.async_schedule_update_ha_state() if self.device.position_reached(): self.stop_auto_updater() diff --git a/homeassistant/components/cover/lutron.py b/homeassistant/components/cover/lutron.py index 4e38681a310f3cb6b9ddbf0fc193bde716d2a11e..599bdb1cebab7fabf3fedc5120f5775223d69fa3 100644 --- a/homeassistant/components/cover/lutron.py +++ b/homeassistant/components/cover/lutron.py @@ -17,7 +17,6 @@ _LOGGER = logging.getLogger(__name__) DEPENDENCIES = ['lutron'] -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Lutron shades.""" devs = [] diff --git a/homeassistant/components/cover/lutron_caseta.py b/homeassistant/components/cover/lutron_caseta.py index 6ad9b093ed84ae0eb88d4c07e5d4484119995ce0..1ed502e0f7f8afd424704d5bf728098485914acd 100644 --- a/homeassistant/components/cover/lutron_caseta.py +++ b/homeassistant/components/cover/lutron_caseta.py @@ -18,7 +18,6 @@ _LOGGER = logging.getLogger(__name__) DEPENDENCIES = ['lutron_caseta'] -# pylint: disable=unused-argument @asyncio.coroutine def async_setup_platform(hass, config, async_add_devices, discovery_info=None): """Set up the Lutron Caseta shades as a cover device.""" diff --git a/homeassistant/components/cover/rpi_gpio.py b/homeassistant/components/cover/rpi_gpio.py index 49666139330c5c0d9f3177d7eefcb70acf211cf8..384f96f3f52339cf743bcfcce08d3064227268bc 100644 --- a/homeassistant/components/cover/rpi_gpio.py +++ b/homeassistant/components/cover/rpi_gpio.py @@ -54,7 +54,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the RPi cover platform.""" relay_time = config.get(CONF_RELAY_TIME) diff --git a/homeassistant/components/device_tracker/actiontec.py b/homeassistant/components/device_tracker/actiontec.py index 781e486a40e83f29148c2ebd7f1b71c726aa87ba..72d9992c60f3e22c91f3d1b15791e9cc196dbf37 100644 --- a/homeassistant/components/device_tracker/actiontec.py +++ b/homeassistant/components/device_tracker/actiontec.py @@ -31,7 +31,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def get_scanner(hass, config): """Validate the configuration and return an Actiontec scanner.""" scanner = ActiontecDeviceScanner(config[DOMAIN]) diff --git a/homeassistant/components/device_tracker/aruba.py b/homeassistant/components/device_tracker/aruba.py index 79d8806fe22bb19c6bd5a230877ae51de55d8394..92ef78f60f3b0b533e7d8bd8ea6954cdabb1ddab 100644 --- a/homeassistant/components/device_tracker/aruba.py +++ b/homeassistant/components/device_tracker/aruba.py @@ -30,7 +30,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def get_scanner(hass, config): """Validate the configuration and return a Aruba scanner.""" scanner = ArubaDeviceScanner(config[DOMAIN]) diff --git a/homeassistant/components/device_tracker/asuswrt.py b/homeassistant/components/device_tracker/asuswrt.py index 7e9b10e9241aa163cacd4f1e3af3b84a73bbe6fa..5cb7e283c99721d3cd86c659b1911d55a086697f 100644 --- a/homeassistant/components/device_tracker/asuswrt.py +++ b/homeassistant/components/device_tracker/asuswrt.py @@ -78,7 +78,6 @@ _ARP_REGEX = re.compile( r'.*') -# pylint: disable=unused-argument def get_scanner(hass, config): """Validate the configuration and return an ASUS-WRT scanner.""" scanner = AsusWrtDeviceScanner(config[DOMAIN]) diff --git a/homeassistant/components/device_tracker/bt_home_hub_5.py b/homeassistant/components/device_tracker/bt_home_hub_5.py index a3b5bcac77c824792fa0b6558289c376cef91664..707850d2215c1e6d5d63d6cbc47a7ad102b34531 100644 --- a/homeassistant/components/device_tracker/bt_home_hub_5.py +++ b/homeassistant/components/device_tracker/bt_home_hub_5.py @@ -26,7 +26,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def get_scanner(hass, config): """Return a BT Home Hub 5 scanner if successful.""" scanner = BTHomeHub5DeviceScanner(config[DOMAIN]) diff --git a/homeassistant/components/device_tracker/ddwrt.py b/homeassistant/components/device_tracker/ddwrt.py index 3d36a1b428c02467ea23f526aec48abc4c23b715..3e17fdd332948bb73bd902af5b18a090bc10906f 100644 --- a/homeassistant/components/device_tracker/ddwrt.py +++ b/homeassistant/components/device_tracker/ddwrt.py @@ -27,7 +27,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def get_scanner(hass, config): """Validate the configuration and return a DD-WRT scanner.""" try: diff --git a/homeassistant/components/device_tracker/huawei_router.py b/homeassistant/components/device_tracker/huawei_router.py index 775075b8a4aae9f1f79e896d930dc48800e93251..804269e62280c5f5dac0c6272bda56e5879a2ca5 100644 --- a/homeassistant/components/device_tracker/huawei_router.py +++ b/homeassistant/components/device_tracker/huawei_router.py @@ -26,7 +26,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def get_scanner(hass, config): """Validate the configuration and return a HUAWEI scanner.""" scanner = HuaweiDeviceScanner(config[DOMAIN]) diff --git a/homeassistant/components/device_tracker/sky_hub.py b/homeassistant/components/device_tracker/sky_hub.py index c48c9bd029b94e40b78dca8ca54c5bd592896c86..0c289ce9a82e55834b0a18d7a88386de116a5d76 100644 --- a/homeassistant/components/device_tracker/sky_hub.py +++ b/homeassistant/components/device_tracker/sky_hub.py @@ -23,7 +23,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def get_scanner(hass, config): """Return a Sky Hub scanner if successful.""" scanner = SkyHubDeviceScanner(config[DOMAIN]) diff --git a/homeassistant/components/device_tracker/snmp.py b/homeassistant/components/device_tracker/snmp.py index c9c27fb2bfa848dc603e908af13f461f67eb39b9..3d57cb108e243cf4f0baa2f1ce66dc0f1eab6728 100644 --- a/homeassistant/components/device_tracker/snmp.py +++ b/homeassistant/components/device_tracker/snmp.py @@ -34,7 +34,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def get_scanner(hass, config): """Validate the configuration and return an SNMP scanner.""" scanner = SnmpScanner(config[DOMAIN]) diff --git a/homeassistant/components/device_tracker/thomson.py b/homeassistant/components/device_tracker/thomson.py index 3fa161e467dec44727dae8c286948a51961326c6..8a56fcee7024b5211a479d8c12d237c21c03d270 100644 --- a/homeassistant/components/device_tracker/thomson.py +++ b/homeassistant/components/device_tracker/thomson.py @@ -33,7 +33,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def get_scanner(hass, config): """Validate the configuration and return a THOMSON scanner.""" scanner = ThomsonDeviceScanner(config[DOMAIN]) diff --git a/homeassistant/components/device_tracker/unifi_direct.py b/homeassistant/components/device_tracker/unifi_direct.py index 168ab04ec6f14ad68d537efcf0d8407b7c188f98..c3c4a48bb826ffee294ce4872b7eea2e815688a5 100644 --- a/homeassistant/components/device_tracker/unifi_direct.py +++ b/homeassistant/components/device_tracker/unifi_direct.py @@ -33,7 +33,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def get_scanner(hass, config): """Validate the configuration and return a Unifi direct scanner.""" scanner = UnifiDeviceScanner(config[DOMAIN]) diff --git a/homeassistant/components/ecobee.py b/homeassistant/components/ecobee.py index 9c29cea704c325b55b9f01628d1da3a49d5d62e4..22348dcc297abb5fa5d77c787fb55bdd2d34f544 100644 --- a/homeassistant/components/ecobee.py +++ b/homeassistant/components/ecobee.py @@ -48,7 +48,6 @@ def request_configuration(network, hass, config): return - # pylint: disable=unused-argument def ecobee_configuration_callback(callback_data): """Handle configuration callbacks.""" network.request_tokens() @@ -106,7 +105,7 @@ def setup(hass, config): Will automatically load thermostat and sensor components to support devices discovered on the network. """ - # pylint: disable=global-statement, import-error + # pylint: disable=import-error global NETWORK if 'ecobee' in _CONFIGURING: diff --git a/homeassistant/components/fan/demo.py b/homeassistant/components/fan/demo.py index b328ebb310174b48f0e54706d52344cf1ed18ce0..c03c492c834a116411f09adcfffa82efa2399dcd 100644 --- a/homeassistant/components/fan/demo.py +++ b/homeassistant/components/fan/demo.py @@ -13,7 +13,6 @@ FULL_SUPPORT = SUPPORT_SET_SPEED | SUPPORT_OSCILLATE | SUPPORT_DIRECTION LIMITED_SUPPORT = SUPPORT_SET_SPEED -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices_callback, discovery_info=None): """Set up the demo fan platform.""" add_devices_callback([ diff --git a/homeassistant/components/fan/isy994.py b/homeassistant/components/fan/isy994.py index 847ca3b325b2bc35bdcae5c750de2d99808dbee9..97a5f9c3bd69d2a4801a42d598328e4d98828508 100644 --- a/homeassistant/components/fan/isy994.py +++ b/homeassistant/components/fan/isy994.py @@ -30,7 +30,6 @@ for key in VALUE_TO_STATE: STATE_TO_VALUE[VALUE_TO_STATE[key]] = key -# pylint: disable=unused-argument def setup_platform(hass, config: ConfigType, add_devices: Callable[[list], None], discovery_info=None): """Set up the ISY994 fan platform.""" diff --git a/homeassistant/components/fan/xiaomi_miio.py b/homeassistant/components/fan/xiaomi_miio.py index 2f00de08005813598a5e52198caee27990ca52e6..1616d38881626d849c9c6e4a02fa7e99af1f0254 100644 --- a/homeassistant/components/fan/xiaomi_miio.py +++ b/homeassistant/components/fan/xiaomi_miio.py @@ -314,7 +314,6 @@ SERVICE_TO_METHOD = { } -# pylint: disable=unused-argument async def async_setup_platform(hass, config, async_add_devices, discovery_info=None): """Set up the miio fan device from config.""" diff --git a/homeassistant/components/ios.py b/homeassistant/components/ios.py index fe3c934659b927a3653a2f2f2d9271e35da2bd13..249f147847c08b476c7e9ca678a5160aeb879d50 100644 --- a/homeassistant/components/ios.py +++ b/homeassistant/components/ios.py @@ -203,7 +203,7 @@ def device_name_for_push_id(push_id): def setup(hass, config): """Set up the iOS component.""" - # pylint: disable=global-statement, import-error + # pylint: disable=import-error global CONFIG_FILE global CONFIG_FILE_PATH diff --git a/homeassistant/components/isy994.py b/homeassistant/components/isy994.py index ecabcd36a85391dcc21747e6872153de5112069d..90ab41cf98b7e07aa84d0a2d72da23a035994ccd 100644 --- a/homeassistant/components/isy994.py +++ b/homeassistant/components/isy994.py @@ -425,7 +425,6 @@ class ISYDevice(Entity): self._control_handler = self._node.controlEvents.subscribe( self.on_control) - # pylint: disable=unused-argument def on_update(self, event: object) -> None: """Handle the update event from the ISY994 Node.""" self.schedule_update_ha_state() diff --git a/homeassistant/components/light/blinksticklight.py b/homeassistant/components/light/blinksticklight.py index 18a6b4ae266d99dbb68a0a319b758e30328f2572..bca587074b01c4617ad3462213176323dfde632a 100644 --- a/homeassistant/components/light/blinksticklight.py +++ b/homeassistant/components/light/blinksticklight.py @@ -31,7 +31,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up Blinkstick device specified by serial number.""" from blinkstick import blinkstick diff --git a/homeassistant/components/light/isy994.py b/homeassistant/components/light/isy994.py index d2ed865892e6f59d93f489301b07f8c7c04b6cd9..ce358d0a974e5e072adfdf6119ad3a5b3b453a01 100644 --- a/homeassistant/components/light/isy994.py +++ b/homeassistant/components/light/isy994.py @@ -15,7 +15,6 @@ from homeassistant.helpers.typing import ConfigType _LOGGER = logging.getLogger(__name__) -# pylint: disable=unused-argument def setup_platform(hass, config: ConfigType, add_devices: Callable[[list], None], discovery_info=None): """Set up the ISY994 light platform.""" diff --git a/homeassistant/components/light/knx.py b/homeassistant/components/light/knx.py index 18446951735bf265b69477b69f24e36dc709ce69..8fa2b56d1d2d1e3df930351db1877a54191a0549 100644 --- a/homeassistant/components/light/knx.py +++ b/homeassistant/components/light/knx.py @@ -88,7 +88,6 @@ class KNXLight(Light): """Register callbacks to update hass after device was changed.""" async def after_update_callback(device): """Call after device was updated.""" - # pylint: disable=unused-argument await self.async_update_ha_state() self.device.register_device_updated_cb(after_update_callback) diff --git a/homeassistant/components/light/lifx_legacy.py b/homeassistant/components/light/lifx_legacy.py index 490eeb6ecaba177ee71326525a04b59a0db4e705..182d7536dc45446ca7b59f3c31bb9ee4c37569e0 100644 --- a/homeassistant/components/light/lifx_legacy.py +++ b/homeassistant/components/light/lifx_legacy.py @@ -45,7 +45,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the LIFX platform.""" server_addr = config.get(CONF_SERVER) @@ -118,7 +117,6 @@ class LIFX(object): bulb.set_power(power) bulb.schedule_update_ha_state() - # pylint: disable=unused-argument def poll(self, now): """Set up polling for the light.""" self.probe() diff --git a/homeassistant/components/light/lutron.py b/homeassistant/components/light/lutron.py index 34d6cba7cb8b09530af969eeecb2d95aa70893a6..24744110c6fd9858bc25571f6459fc54e7d247e2 100644 --- a/homeassistant/components/light/lutron.py +++ b/homeassistant/components/light/lutron.py @@ -16,7 +16,6 @@ _LOGGER = logging.getLogger(__name__) DEPENDENCIES = ['lutron'] -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Lutron lights.""" devs = [] diff --git a/homeassistant/components/light/lutron_caseta.py b/homeassistant/components/light/lutron_caseta.py index e4e1baf6c582d2cbbbda09202e622f9390ca9ea3..09f0a337cc343a73047a461520ff50e7e3fb68eb 100644 --- a/homeassistant/components/light/lutron_caseta.py +++ b/homeassistant/components/light/lutron_caseta.py @@ -19,7 +19,6 @@ _LOGGER = logging.getLogger(__name__) DEPENDENCIES = ['lutron_caseta'] -# pylint: disable=unused-argument @asyncio.coroutine def async_setup_platform(hass, config, async_add_devices, discovery_info=None): """Set up the Lutron Caseta lights.""" diff --git a/homeassistant/components/light/tellstick.py b/homeassistant/components/light/tellstick.py index 1bf7d632af5fc1243db285864578a588e29065fa..44e5e40b3b79cc29c4b155a632dc2882f9fdf585 100644 --- a/homeassistant/components/light/tellstick.py +++ b/homeassistant/components/light/tellstick.py @@ -15,7 +15,6 @@ from homeassistant.components.tellstick import ( SUPPORT_TELLSTICK = SUPPORT_BRIGHTNESS -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Tellstick lights.""" if (discovery_info is None or diff --git a/homeassistant/components/light/tikteck.py b/homeassistant/components/light/tikteck.py index 2079638f7f10464f35fea503ecd1ce10cbb98f77..c21da57ea96f1a5108f0be6ebef90d6bc6d54466 100644 --- a/homeassistant/components/light/tikteck.py +++ b/homeassistant/components/light/tikteck.py @@ -31,7 +31,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Tikteck platform.""" lights = [] diff --git a/homeassistant/components/light/vera.py b/homeassistant/components/light/vera.py index 7ace250b6eeee55022229eafbf9a445e121b1cbc..e62ffaecdff92fb492e2a14505b48c4a7c176723 100644 --- a/homeassistant/components/light/vera.py +++ b/homeassistant/components/light/vera.py @@ -18,7 +18,6 @@ _LOGGER = logging.getLogger(__name__) DEPENDENCIES = ['vera'] -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Vera lights.""" add_devices( diff --git a/homeassistant/components/light/xiaomi_miio.py b/homeassistant/components/light/xiaomi_miio.py index cba15f6df9f7ec1aee37a376c956c87c3827c3f1..fbb8dd66f013d832c3d6b23f2144f3900a5a2a07 100644 --- a/homeassistant/components/light/xiaomi_miio.py +++ b/homeassistant/components/light/xiaomi_miio.py @@ -100,7 +100,6 @@ SERVICE_TO_METHOD = { } -# pylint: disable=unused-argument async def async_setup_platform(hass, config, async_add_devices, discovery_info=None): """Set up the light from config.""" diff --git a/homeassistant/components/light/zengge.py b/homeassistant/components/light/zengge.py index 3c77f2d8449cac9b300adaf62f851b1b1bf81d5b..35d2bf2388cd3b64473d80c29e7f83c41e913a7f 100644 --- a/homeassistant/components/light/zengge.py +++ b/homeassistant/components/light/zengge.py @@ -30,7 +30,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Zengge platform.""" lights = [] diff --git a/homeassistant/components/lock/demo.py b/homeassistant/components/lock/demo.py index d561dd333ab315dbf83694e6b20495121be41f51..8da53a9ef11fba92d54049067d8d23d9de0c9f97 100644 --- a/homeassistant/components/lock/demo.py +++ b/homeassistant/components/lock/demo.py @@ -8,7 +8,6 @@ from homeassistant.components.lock import LockDevice, SUPPORT_OPEN from homeassistant.const import (STATE_LOCKED, STATE_UNLOCKED) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Demo lock platform.""" add_devices([ diff --git a/homeassistant/components/lock/isy994.py b/homeassistant/components/lock/isy994.py index 50371fdc9ae8fbd3f0cfe14dccac9976bc2c733e..79e4308dbda1148d493ae9cf08330b4d0114d4db 100644 --- a/homeassistant/components/lock/isy994.py +++ b/homeassistant/components/lock/isy994.py @@ -21,7 +21,6 @@ VALUE_TO_STATE = { } -# pylint: disable=unused-argument def setup_platform(hass, config: ConfigType, add_devices: Callable[[list], None], discovery_info=None): """Set up the ISY994 lock platform.""" diff --git a/homeassistant/components/lock/lockitron.py b/homeassistant/components/lock/lockitron.py index ea79848f60ce1131a78495c422469515622b502f..6bf445ba477529102835b267f2d0ae2fb5b458cd 100644 --- a/homeassistant/components/lock/lockitron.py +++ b/homeassistant/components/lock/lockitron.py @@ -26,7 +26,6 @@ API_STATE_URL = BASE_URL + '/v2/locks/{}?access_token={}' API_ACTION_URL = BASE_URL + '/v2/locks/{}?access_token={}&state={}' -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Lockitron platform.""" access_token = config.get(CONF_ACCESS_TOKEN) diff --git a/homeassistant/components/lock/nello.py b/homeassistant/components/lock/nello.py index 04030c92425774cf68c89886bb040955fe2fb94a..f67243415c50f8ad153e4442d40062c01c935de1 100644 --- a/homeassistant/components/lock/nello.py +++ b/homeassistant/components/lock/nello.py @@ -27,7 +27,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Nello lock platform.""" from pynello import Nello diff --git a/homeassistant/components/lock/nuki.py b/homeassistant/components/lock/nuki.py index 4fe05279919a60851c18ba70ac3c66071cd1b33c..536c8f2abeb79404a976165d6301ffe531508586 100644 --- a/homeassistant/components/lock/nuki.py +++ b/homeassistant/components/lock/nuki.py @@ -50,7 +50,6 @@ UNLATCH_SERVICE_SCHEMA = vol.Schema({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Nuki lock platform.""" from pynuki import NukiBridge diff --git a/homeassistant/components/lock/sesame.py b/homeassistant/components/lock/sesame.py index 5bc404354860f71a07d52e43d2aaf2cce62eabd4..09f7266d15c6a16e57e4bf3cb91f4484d1e6d019 100644 --- a/homeassistant/components/lock/sesame.py +++ b/homeassistant/components/lock/sesame.py @@ -24,7 +24,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform( hass, config: ConfigType, add_devices: Callable[[list], None], discovery_info=None): diff --git a/homeassistant/components/lock/volvooncall.py b/homeassistant/components/lock/volvooncall.py index ab1d2fabefe1c5af5e8f2fedd7ee3c898595b82f..b6e7383b138251c80c55963b7a9e6f5d1e784218 100644 --- a/homeassistant/components/lock/volvooncall.py +++ b/homeassistant/components/lock/volvooncall.py @@ -12,7 +12,6 @@ from homeassistant.components.volvooncall import VolvoEntity _LOGGER = logging.getLogger(__name__) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Volvo On Call lock.""" if discovery_info is None: diff --git a/homeassistant/components/logbook.py b/homeassistant/components/logbook.py index bcfae533abfc9b0bdf72228ce8ae2a563d52eb97..e2d02acc61c0192dfc4fbad3028f4657b2a83ac1 100644 --- a/homeassistant/components/logbook.py +++ b/homeassistant/components/logbook.py @@ -372,7 +372,6 @@ def _exclude_events(events, config): return filtered_events -# pylint: disable=too-many-return-statements def _entry_message_from_state(domain, state): """Convert a state to a message for the logbook.""" # We pass domain in so we don't have to split entity_id again diff --git a/homeassistant/components/media_player/aquostv.py b/homeassistant/components/media_player/aquostv.py index 6933286f0fe584015abdc84c59b82750e1cb2190..93daf5b2f893d6a678aca83e1912e7d4fd678ecf 100644 --- a/homeassistant/components/media_player/aquostv.py +++ b/homeassistant/components/media_player/aquostv.py @@ -59,7 +59,6 @@ SOURCES = {0: 'TV / Antenna', 8: 'PC_IN'} -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Sharp Aquos TV platform.""" import sharp_aquos_rc @@ -104,7 +103,6 @@ def _retry(func): return wrapper -# pylint: disable=abstract-method class SharpAquosTVDevice(MediaPlayerDevice): """Representation of a Aquos TV.""" diff --git a/homeassistant/components/media_player/blackbird.py b/homeassistant/components/media_player/blackbird.py index 1c976f5eecd32b9dd3e850ad50721a844e899f65..3d8e1fde687f749e72150a6b2018269cd3d9de5a 100644 --- a/homeassistant/components/media_player/blackbird.py +++ b/homeassistant/components/media_player/blackbird.py @@ -61,7 +61,6 @@ PLATFORM_SCHEMA = vol.All( })) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Monoprice Blackbird 4k 8x8 HDBaseT Matrix platform.""" if DATA_BLACKBIRD not in hass.data: diff --git a/homeassistant/components/media_player/braviatv.py b/homeassistant/components/media_player/braviatv.py index f0cc93a8b0f3f2e520e231e9430113a5e7601e51..727bda3be3f1811202c411a9caac2048aa785648 100644 --- a/homeassistant/components/media_player/braviatv.py +++ b/homeassistant/components/media_player/braviatv.py @@ -60,7 +60,6 @@ def _get_mac_address(ip_address): return None -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Sony Bravia TV platform.""" host = config.get(CONF_HOST) diff --git a/homeassistant/components/media_player/channels.py b/homeassistant/components/media_player/channels.py index 6b41ace6ce21b5c78dfd4cafd33605f9841e0767..41713e0c5bc6f66cb67c565ce3aba5f5aabe50bf 100644 --- a/homeassistant/components/media_player/channels.py +++ b/homeassistant/components/media_player/channels.py @@ -105,7 +105,6 @@ def setup_platform(hass, config, add_devices, discovery_info=None): class ChannelsPlayer(MediaPlayerDevice): """Representation of a Channels instance.""" - # pylint: disable=too-many-public-methods def __init__(self, name, host, port): """Initialize the Channels app.""" from pychannels import Channels diff --git a/homeassistant/components/media_player/clementine.py b/homeassistant/components/media_player/clementine.py index 6847b87e54f7c7361f202d48b84e5950bb766c02..1ee18576ab8c85f601a663e97b70522fa009e155 100644 --- a/homeassistant/components/media_player/clementine.py +++ b/homeassistant/components/media_player/clementine.py @@ -43,7 +43,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Clementine platform.""" from clementineremote import ClementineRemote diff --git a/homeassistant/components/media_player/demo.py b/homeassistant/components/media_player/demo.py index 2c74feae8478096343c5954187f9e9dcb3ce2a28..405c220c8770a3c70383f49d571d6c7196a2699c 100644 --- a/homeassistant/components/media_player/demo.py +++ b/homeassistant/components/media_player/demo.py @@ -14,7 +14,6 @@ from homeassistant.const import STATE_OFF, STATE_PAUSED, STATE_PLAYING import homeassistant.util.dt as dt_util -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the media player demo platform.""" add_devices([ diff --git a/homeassistant/components/media_player/dunehd.py b/homeassistant/components/media_player/dunehd.py index efa5e7e607983d943a11a1e2f27c71e8c6b58337..ed20ac25cf90ebfb7f1376f386c56a6b1ff1d89a 100644 --- a/homeassistant/components/media_player/dunehd.py +++ b/homeassistant/components/media_player/dunehd.py @@ -32,7 +32,6 @@ DUNEHD_PLAYER_SUPPORT = \ SUPPORT_PLAY -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the DuneHD media player platform.""" from pdunehd import DuneHDPlayer diff --git a/homeassistant/components/media_player/firetv.py b/homeassistant/components/media_player/firetv.py index 9d66ae77eeff06f5979c6924ed6725320d9db78e..157db2c44d3a35515ff93b93733450d2c3c17ed9 100644 --- a/homeassistant/components/media_player/firetv.py +++ b/homeassistant/components/media_player/firetv.py @@ -43,7 +43,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the FireTV platform.""" name = config.get(CONF_NAME) diff --git a/homeassistant/components/media_player/frontier_silicon.py b/homeassistant/components/media_player/frontier_silicon.py index 6d95ea675fb812c23a65bdb7ab7f2d18dd26f963..ab594f47e14d62fbf3899d6ef95b1e187603c2d3 100644 --- a/homeassistant/components/media_player/frontier_silicon.py +++ b/homeassistant/components/media_player/frontier_silicon.py @@ -41,7 +41,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument @asyncio.coroutine def async_setup_platform(hass, config, async_add_devices, discovery_info=None): """Set up the Frontier Silicon platform.""" diff --git a/homeassistant/components/media_player/gpmdp.py b/homeassistant/components/media_player/gpmdp.py index 2f116abebc3311bb6c22bcd0821cc15669bf5570..4a0ec1fa87f4aa9e486da9585d36e4f3e34783e8 100644 --- a/homeassistant/components/media_player/gpmdp.py +++ b/homeassistant/components/media_player/gpmdp.py @@ -59,7 +59,6 @@ def request_configuration(hass, config, url, add_devices_callback): 'method': 'connect', 'arguments': ['Home Assistant']})) - # pylint: disable=unused-argument def gpmdp_configuration_callback(callback_data): """Handle configuration changes.""" while True: diff --git a/homeassistant/components/media_player/gstreamer.py b/homeassistant/components/media_player/gstreamer.py index 064ca68ea9561cec647b1fd06815a85d6a615195..91cd8d19cc4a595cfd35862029249ea8feca9fc0 100644 --- a/homeassistant/components/media_player/gstreamer.py +++ b/homeassistant/components/media_player/gstreamer.py @@ -34,7 +34,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Gstreamer platform.""" from gsp import GstreamerPlayer diff --git a/homeassistant/components/media_player/lg_netcast.py b/homeassistant/components/media_player/lg_netcast.py index edbd6546cca9f5b5c6f9d4debffbb8f83e28333a..8c98844cf9358aae2b580070569bac20431c3c32 100644 --- a/homeassistant/components/media_player/lg_netcast.py +++ b/homeassistant/components/media_player/lg_netcast.py @@ -43,7 +43,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the LG TV platform.""" from pylgnetcast import LgNetCastClient diff --git a/homeassistant/components/media_player/monoprice.py b/homeassistant/components/media_player/monoprice.py index 44d19ac68603915c9fe5315de0729e2143ccea2b..a951356500f0825432108c17c579c5a989b9b965 100644 --- a/homeassistant/components/media_player/monoprice.py +++ b/homeassistant/components/media_player/monoprice.py @@ -55,7 +55,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Monoprice 6-zone amplifier platform.""" port = config.get(CONF_PORT) diff --git a/homeassistant/components/media_player/mpchc.py b/homeassistant/components/media_player/mpchc.py index a375a585ad40db6f40ee7ec9f80319efa67b7372..ad8dd0bf0564f08e8591405fc83debc69be0afaf 100644 --- a/homeassistant/components/media_player/mpchc.py +++ b/homeassistant/components/media_player/mpchc.py @@ -35,7 +35,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the MPC-HC platform.""" name = config.get(CONF_NAME) diff --git a/homeassistant/components/media_player/mpd.py b/homeassistant/components/media_player/mpd.py index 04dd1ac5f2e1ef9c1f46a796cb4e45c4c94f7c17..73417e5f25d7f093e9f382ba7e52c746039ba3f3 100644 --- a/homeassistant/components/media_player/mpd.py +++ b/homeassistant/components/media_player/mpd.py @@ -46,7 +46,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the MPD platform.""" host = config.get(CONF_HOST) diff --git a/homeassistant/components/media_player/openhome.py b/homeassistant/components/media_player/openhome.py index 5e30f9783c7582b57469dc7b49aae28642036f7f..5d9c7bd14c578af65648701b3715644d4f075764 100644 --- a/homeassistant/components/media_player/openhome.py +++ b/homeassistant/components/media_player/openhome.py @@ -25,7 +25,6 @@ _LOGGER = logging.getLogger(__name__) DEVICES = [] -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Openhome platform.""" from openhomedevice.Device import Device diff --git a/homeassistant/components/media_player/panasonic_viera.py b/homeassistant/components/media_player/panasonic_viera.py index db60de922d998f25e17b0b8356b8fca90feef397..549071fde8e5d4dedf6423716fba114f809b6de7 100644 --- a/homeassistant/components/media_player/panasonic_viera.py +++ b/homeassistant/components/media_player/panasonic_viera.py @@ -42,7 +42,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Panasonic Viera TV platform.""" from panasonic_viera import RemoteControl diff --git a/homeassistant/components/media_player/pandora.py b/homeassistant/components/media_player/pandora.py index d66811eed661f16c0ded97e431966429a06e8ce9..a47db7f633c4a616e6293492ee83e1f12da9442b 100644 --- a/homeassistant/components/media_player/pandora.py +++ b/homeassistant/components/media_player/pandora.py @@ -43,7 +43,6 @@ CURRENT_SONG_PATTERN = re.compile(r'"(.*?)"\s+by\s+"(.*?)"\son\s+"(.*?)"', STATION_PATTERN = re.compile(r'Station\s"(.+?)"', re.MULTILINE) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Pandora media player platform.""" if not _pianobar_exists(): diff --git a/homeassistant/components/media_player/philips_js.py b/homeassistant/components/media_player/philips_js.py index 01d63e0b6c845d7fff6d8b601970776c72098e66..be0c0527f1bc9fa23d129f520c05538e2a9da880 100644 --- a/homeassistant/components/media_player/philips_js.py +++ b/homeassistant/components/media_player/philips_js.py @@ -48,7 +48,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Philips TV platform.""" import haphilipsjs diff --git a/homeassistant/components/media_player/samsungtv.py b/homeassistant/components/media_player/samsungtv.py index 43e9abd96a668ea5e37c6e7720fe0cd105759af8..15a2b41795e8c76af2a3bc767680af6206c07df3 100644 --- a/homeassistant/components/media_player/samsungtv.py +++ b/homeassistant/components/media_player/samsungtv.py @@ -47,7 +47,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Samsung TV platform.""" known_devices = hass.data.get(KNOWN_DEVICES_KEY) diff --git a/homeassistant/components/media_player/snapcast.py b/homeassistant/components/media_player/snapcast.py index 53a95f7924c7aa7ddadd8c8d24fc77ce7ac62877..a880d3c920d150d71f08dadf5b406d864180db74 100644 --- a/homeassistant/components/media_player/snapcast.py +++ b/homeassistant/components/media_player/snapcast.py @@ -46,7 +46,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument @asyncio.coroutine def async_setup_platform(hass, config, async_add_devices, discovery_info=None): """Set up the Snapcast platform.""" diff --git a/homeassistant/components/media_player/vlc.py b/homeassistant/components/media_player/vlc.py index abd8252d813c444fb56c2131d0d0a38a27064ead..45e1a91c510fdaee99f91263b05d094b03054dbf 100644 --- a/homeassistant/components/media_player/vlc.py +++ b/homeassistant/components/media_player/vlc.py @@ -34,7 +34,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the vlc platform.""" add_devices([VlcDevice(config.get(CONF_NAME, DEFAULT_NAME), diff --git a/homeassistant/components/media_player/webostv.py b/homeassistant/components/media_player/webostv.py index c3426e454048f591511cbe437bc39f1041afeafe..42d0ae85ab3c8e97c8fc7617182711ed0289596d 100644 --- a/homeassistant/components/media_player/webostv.py +++ b/homeassistant/components/media_player/webostv.py @@ -61,7 +61,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the LG WebOS TV platform.""" if discovery_info is not None: @@ -139,7 +138,6 @@ def request_configuration( _CONFIGURING[host], 'Failed to pair, please try again.') return - # pylint: disable=unused-argument def lgtv_configuration_callback(data): """Handle actions when configuration callback is called.""" setup_tv(host, name, customize, config, timeout, hass, diff --git a/homeassistant/components/modbus.py b/homeassistant/components/modbus.py index a928c0d3aca03135faf24cf093a7afe99cdb238c..fe46c858b5119f447abf9f380fd9f3593c5e405e 100644 --- a/homeassistant/components/modbus.py +++ b/homeassistant/components/modbus.py @@ -75,11 +75,11 @@ HUB = None def setup(hass, config): """Set up Modbus component.""" # Modbus connection type - # pylint: disable=global-statement, import-error + # pylint: disable=import-error client_type = config[DOMAIN][CONF_TYPE] # Connect to Modbus network - # pylint: disable=global-statement, import-error + # pylint: disable=import-error if client_type == 'serial': from pymodbus.client.sync import ModbusSerialClient as ModbusClient diff --git a/homeassistant/components/notify/message_bird.py b/homeassistant/components/notify/message_bird.py index b20abb52efc5c319a7c0953ad072bc9400a341ea..fa747ccba88deef5f3ffb560fc7257de27969c8b 100644 --- a/homeassistant/components/notify/message_bird.py +++ b/homeassistant/components/notify/message_bird.py @@ -24,7 +24,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def get_service(hass, config, discovery_info=None): """Get the MessageBird notification service.""" import messagebird diff --git a/homeassistant/components/notify/mysensors.py b/homeassistant/components/notify/mysensors.py index 1374779c5f04172b44b16cbc7c98a58e754cc8fd..db568514dea25aaefd065fa6eb6a5cd6c1dfc7bb 100644 --- a/homeassistant/components/notify/mysensors.py +++ b/homeassistant/components/notify/mysensors.py @@ -36,8 +36,6 @@ class MySensorsNotificationDevice(mysensors.MySensorsDevice): class MySensorsNotificationService(BaseNotificationService): """Implement a MySensors notification service.""" - # pylint: disable=too-few-public-methods - def __init__(self, hass): """Initialize the service.""" self.devices = mysensors.get_mysensors_devices(hass, DOMAIN) diff --git a/homeassistant/components/notify/nfandroidtv.py b/homeassistant/components/notify/nfandroidtv.py index 1fa8f1dab78b6392048389479a31de6780a0c1a4..044a037cc2978b69653456820b3f7277d3e38484 100644 --- a/homeassistant/components/notify/nfandroidtv.py +++ b/homeassistant/components/notify/nfandroidtv.py @@ -86,7 +86,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def get_service(hass, config, discovery_info=None): """Get the Notifications for Android TV notification service.""" remoteip = config.get(CONF_IP) diff --git a/homeassistant/components/notify/pushbullet.py b/homeassistant/components/notify/pushbullet.py index 37edb6709a74d513d7be8cd64b653a6d15b22039..a94cf4f105528dbcd7c265720356e39bf4edd4db 100644 --- a/homeassistant/components/notify/pushbullet.py +++ b/homeassistant/components/notify/pushbullet.py @@ -29,7 +29,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def get_service(hass, config, discovery_info=None): """Get the Pushbullet notification service.""" from pushbullet import PushBullet diff --git a/homeassistant/components/nuimo_controller.py b/homeassistant/components/nuimo_controller.py index ffd7a799413b58af6dd43e9af0552f7a02e6a741..25e8a230224833648a12712c4b78b60f0ca394a9 100644 --- a/homeassistant/components/nuimo_controller.py +++ b/homeassistant/components/nuimo_controller.py @@ -97,7 +97,6 @@ class NuimoThread(threading.Thread): self._nuimo.disconnect() self._nuimo = None - # pylint: disable=unused-argument def stop(self, event): """Terminate Thread by unsetting flag.""" _LOGGER.debug('Stopping thread for Nuimo %s', self._mac) diff --git a/homeassistant/components/raspihats.py b/homeassistant/components/raspihats.py index 3bc45eab34ece4f3c64ce42fdd9bdfcca8615a15..41480c09a32352881d70d250ccbc0e1c37f8417c 100644 --- a/homeassistant/components/raspihats.py +++ b/homeassistant/components/raspihats.py @@ -34,7 +34,6 @@ I2C_HAT_NAMES = [ I2C_HATS_MANAGER = 'I2CH_MNG' -# pylint: disable=unused-argument def setup(hass, config): """Set up the raspihats component.""" hass.data[I2C_HATS_MANAGER] = I2CHatsManager() diff --git a/homeassistant/components/remote/demo.py b/homeassistant/components/remote/demo.py index bc67c1646b27b857d38ee1e980df1bf28d17bcbf..d959d74574f3b989eddfd9a05d3961d629f90cac 100644 --- a/homeassistant/components/remote/demo.py +++ b/homeassistant/components/remote/demo.py @@ -8,7 +8,6 @@ from homeassistant.components.remote import RemoteDevice from homeassistant.const import DEVICE_DEFAULT_NAME -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices_callback, discovery_info=None): """Set up the demo remotes.""" add_devices_callback([ diff --git a/homeassistant/components/remote/itach.py b/homeassistant/components/remote/itach.py index 8b91e5356b416dacfef2156e4f8ac7277b049945..78d277ca65fd3a3d14c09bcbdfef3d1ea7d7f0e2 100644 --- a/homeassistant/components/remote/itach.py +++ b/homeassistant/components/remote/itach.py @@ -44,7 +44,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the ITach connection and devices.""" import pyitachip2ir diff --git a/homeassistant/components/scene/lifx_cloud.py b/homeassistant/components/scene/lifx_cloud.py index ffbb10cba4eca1c689315f5ce094db92b8b47edc..6fe91d0acd2e25525849f22e48c25554c9654375 100644 --- a/homeassistant/components/scene/lifx_cloud.py +++ b/homeassistant/components/scene/lifx_cloud.py @@ -29,7 +29,6 @@ PLATFORM_SCHEMA = vol.Schema({ }) -# pylint: disable=unused-argument @asyncio.coroutine def async_setup_platform(hass, config, async_add_devices, discovery_info=None): """Set up the scenes stored in the LIFX Cloud.""" diff --git a/homeassistant/components/sensor/bloomsky.py b/homeassistant/components/sensor/bloomsky.py index b460498c901e4448685272c7df816742076669c8..d33796d04ccc773707e14a38ed79b14805a66956 100644 --- a/homeassistant/components/sensor/bloomsky.py +++ b/homeassistant/components/sensor/bloomsky.py @@ -41,7 +41,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the available BloomSky weather sensors.""" bloomsky = hass.components.bloomsky diff --git a/homeassistant/components/sensor/broadlink.py b/homeassistant/components/sensor/broadlink.py index 9376687cf131fa97071edc7e9c27ac325ba51e15..8806fae5974f77fd4754914c9ff61488915a8248 100644 --- a/homeassistant/components/sensor/broadlink.py +++ b/homeassistant/components/sensor/broadlink.py @@ -47,7 +47,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Broadlink device sensors.""" host = config.get(CONF_HOST) diff --git a/homeassistant/components/sensor/citybikes.py b/homeassistant/components/sensor/citybikes.py index a8bc441b722fab81d1395070c13911a5ff2ce36e..24f8ea7e6a94f6c3667a806185177fd43f27e854 100644 --- a/homeassistant/components/sensor/citybikes.py +++ b/homeassistant/components/sensor/citybikes.py @@ -125,7 +125,6 @@ def async_citybikes_request(hass, uri, schema): raise CityBikesRequestError -# pylint: disable=unused-argument @asyncio.coroutine def async_setup_platform(hass, config, async_add_devices, discovery_info=None): diff --git a/homeassistant/components/sensor/command_line.py b/homeassistant/components/sensor/command_line.py index f326a57b137fd2042a5289c772708f516d2a6c38..4a26a1dc9fc77166691f212b697855db485ce345 100644 --- a/homeassistant/components/sensor/command_line.py +++ b/homeassistant/components/sensor/command_line.py @@ -35,7 +35,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Command Sensor.""" name = config.get(CONF_NAME) diff --git a/homeassistant/components/sensor/crimereports.py b/homeassistant/components/sensor/crimereports.py index a2d7315a314cc5d33bbc47d4e719c41192d2abfd..adf7e3c0fa9719a6dba8731fc8247aa65910b1c1 100644 --- a/homeassistant/components/sensor/crimereports.py +++ b/homeassistant/components/sensor/crimereports.py @@ -41,7 +41,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Crime Reports platform.""" latitude = config.get(CONF_LATITUDE, hass.config.latitude) diff --git a/homeassistant/components/sensor/deluge.py b/homeassistant/components/sensor/deluge.py index 8acbda74d7d461d7d5c284c7a04f74a0df2c7d81..b9109f6428c1dfb5acb6132fe93966cd6dac98fd 100644 --- a/homeassistant/components/sensor/deluge.py +++ b/homeassistant/components/sensor/deluge.py @@ -42,7 +42,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Deluge sensors.""" from deluge_client import DelugeRPCClient diff --git a/homeassistant/components/sensor/demo.py b/homeassistant/components/sensor/demo.py index 325d3e0ae5805072632e1a9afe7db0a69c9f888e..15cc0ec46aebe42ef0a301a79736cdb81dbff5f5 100644 --- a/homeassistant/components/sensor/demo.py +++ b/homeassistant/components/sensor/demo.py @@ -10,7 +10,6 @@ from homeassistant.const import ( from homeassistant.helpers.entity import Entity -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Demo sensors.""" add_devices([ diff --git a/homeassistant/components/sensor/eddystone_temperature.py b/homeassistant/components/sensor/eddystone_temperature.py index 2c8ad4781d003dd1b16de040015817f98fd1cd6f..978b8db669ac7753ec4b7428a738803de6e53a26 100644 --- a/homeassistant/components/sensor/eddystone_temperature.py +++ b/homeassistant/components/sensor/eddystone_temperature.py @@ -39,7 +39,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Validate configuration, create devices and start monitoring thread.""" bt_device_id = config.get("bt_device_id") diff --git a/homeassistant/components/sensor/fedex.py b/homeassistant/components/sensor/fedex.py index f86de1d865c9646e94e422d66cd32f69b95b4764..991588f07f326cebd7d8534de39b9970c16f7cdf 100644 --- a/homeassistant/components/sensor/fedex.py +++ b/homeassistant/components/sensor/fedex.py @@ -41,7 +41,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Fedex platform.""" import fedexdeliverymanager diff --git a/homeassistant/components/sensor/fints.py b/homeassistant/components/sensor/fints.py index 798f74bb6548a8b1bbc02494e40bace5112854d4..1312991913939a1b7b9c5fcf80fde6b3fbafa402 100644 --- a/homeassistant/components/sensor/fints.py +++ b/homeassistant/components/sensor/fints.py @@ -50,7 +50,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the sensors. diff --git a/homeassistant/components/sensor/fitbit.py b/homeassistant/components/sensor/fitbit.py index 8d64a8d8229d0bc6658099dfa00d6ab15fd75eb9..f312d1f22cc1e1c15c1ae223c06513636a3b6269 100644 --- a/homeassistant/components/sensor/fitbit.py +++ b/homeassistant/components/sensor/fitbit.py @@ -156,7 +156,6 @@ def request_app_setup(hass, config, add_devices, config_path, """Assist user with configuring the Fitbit dev application.""" configurator = hass.components.configurator - # pylint: disable=unused-argument def fitbit_configuration_callback(callback_data): """Handle configuration updates.""" config_path = hass.config.path(FITBIT_CONFIG_FILE) @@ -202,7 +201,6 @@ def request_oauth_completion(hass): return - # pylint: disable=unused-argument def fitbit_configuration_callback(callback_data): """Handle configuration updates.""" diff --git a/homeassistant/components/sensor/haveibeenpwned.py b/homeassistant/components/sensor/haveibeenpwned.py index 3b041127a5b18f082b8919792a4eb360fcb1da2c..c1fe7ab4880fab25f495867e25e372c072865786 100644 --- a/homeassistant/components/sensor/haveibeenpwned.py +++ b/homeassistant/components/sensor/haveibeenpwned.py @@ -35,7 +35,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the HaveIBeenPwned sensor.""" emails = config.get(CONF_EMAIL) diff --git a/homeassistant/components/sensor/hp_ilo.py b/homeassistant/components/sensor/hp_ilo.py index 922ed04a8d9e2ad571cd1fa938daf3712804ab9a..acd10fe08afb3af5dfe171b24df29d44bcfced1d 100644 --- a/homeassistant/components/sensor/hp_ilo.py +++ b/homeassistant/components/sensor/hp_ilo.py @@ -59,7 +59,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the HP ILO sensor.""" hostname = config.get(CONF_HOST) diff --git a/homeassistant/components/sensor/isy994.py b/homeassistant/components/sensor/isy994.py index ecf7bc0b8c26657780d42256cdc62a5112ea3d61..ca8c19bbc7a193aa59b661c6411f90d0d6f8c7a6 100644 --- a/homeassistant/components/sensor/isy994.py +++ b/homeassistant/components/sensor/isy994.py @@ -235,7 +235,6 @@ UOM_TO_STATES = { } -# pylint: disable=unused-argument def setup_platform(hass, config: ConfigType, add_devices: Callable[[list], None], discovery_info=None): """Set up the ISY994 sensor platform.""" diff --git a/homeassistant/components/sensor/kira.py b/homeassistant/components/sensor/kira.py index b5d3073ea9a06fbce13346eacf0863f315ffe03a..74a1bd19d344280998a4cf8213a9cfe3b408524e 100644 --- a/homeassistant/components/sensor/kira.py +++ b/homeassistant/components/sensor/kira.py @@ -18,7 +18,7 @@ ICON = 'mdi:remote' CONF_SENSOR = 'sensor' -# pylint: disable=unused-argument, too-many-function-args +# pylint: disable=too-many-function-args def setup_platform(hass, config, add_devices, discovery_info=None): """Set up a Kira sensor.""" if discovery_info is not None: diff --git a/homeassistant/components/sensor/knx.py b/homeassistant/components/sensor/knx.py index 8eeb75fb0f17d6f0abb6c2c0e36511698dd731e3..925b16cb4c7d20c47db5d2448cc812e06dee979b 100644 --- a/homeassistant/components/sensor/knx.py +++ b/homeassistant/components/sensor/knx.py @@ -73,7 +73,6 @@ class KNXSensor(Entity): """Register callbacks to update hass after device was changed.""" async def after_update_callback(device): """Call after device was updated.""" - # pylint: disable=unused-argument await self.async_update_ha_state() self.device.register_device_updated_cb(after_update_callback) diff --git a/homeassistant/components/sensor/lastfm.py b/homeassistant/components/sensor/lastfm.py index 5af81832523f1d746a0c9edd142ca35ed9d270cc..ee9ab146c87fcb37e2a9c592cecd08c64d521032 100644 --- a/homeassistant/components/sensor/lastfm.py +++ b/homeassistant/components/sensor/lastfm.py @@ -29,7 +29,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Last.fm platform.""" import pylast as lastfm diff --git a/homeassistant/components/sensor/mold_indicator.py b/homeassistant/components/sensor/mold_indicator.py index 057718400c4b59fb6bfe3760510bcd2ce1051dbf..2822ce01dca45698dc1c5fb7aac6455d35d3b7a7 100644 --- a/homeassistant/components/sensor/mold_indicator.py +++ b/homeassistant/components/sensor/mold_indicator.py @@ -41,7 +41,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up MoldIndicator sensor.""" name = config.get(CONF_NAME, DEFAULT_NAME) diff --git a/homeassistant/components/sensor/mopar.py b/homeassistant/components/sensor/mopar.py index 99ea4ef6135ad5c35406f1698d5a832ee3dddac1..3e1887cfd598b50a02274222f8d8f1430f9f03e4 100644 --- a/homeassistant/components/sensor/mopar.py +++ b/homeassistant/components/sensor/mopar.py @@ -41,7 +41,6 @@ REMOTE_COMMAND_SCHEMA = vol.Schema({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Mopar platform.""" import motorparts diff --git a/homeassistant/components/sensor/mvglive.py b/homeassistant/components/sensor/mvglive.py index 46d79c1121ba845e8682dfdf8492a1b1f2b31fe8..81c7173e4d03861c1d16db1c1d11ca41caa26772 100644 --- a/homeassistant/components/sensor/mvglive.py +++ b/homeassistant/components/sensor/mvglive.py @@ -72,7 +72,6 @@ def setup_platform(hass, config, add_devices, discovery_info=None): add_devices(sensors, True) -# pylint: disable=too-few-public-methods class MVGLiveSensor(Entity): """Implementation of an MVG Live sensor.""" diff --git a/homeassistant/components/sensor/nzbget.py b/homeassistant/components/sensor/nzbget.py index b140d02af045874ba2a28c8a0ac8a16da4e0b900..0fa6362ad051ff9376ee3b7615dcdc8331060465 100644 --- a/homeassistant/components/sensor/nzbget.py +++ b/homeassistant/components/sensor/nzbget.py @@ -50,7 +50,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the NZBGet sensors.""" host = config.get(CONF_HOST) diff --git a/homeassistant/components/sensor/octoprint.py b/homeassistant/components/sensor/octoprint.py index 8a800e8616cc7330f52d7853985e723dafad913a..20d00267deef3ac7cb4602c217f45a95c2f3dceb 100644 --- a/homeassistant/components/sensor/octoprint.py +++ b/homeassistant/components/sensor/octoprint.py @@ -38,7 +38,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the available OctoPrint sensors.""" octoprint_api = hass.data[DOMAIN]["api"] diff --git a/homeassistant/components/sensor/ohmconnect.py b/homeassistant/components/sensor/ohmconnect.py index ff465b3617c2e3588c960184d16cd7275c9bec5f..d323a21a521096568019a25c24cddbfaca857939 100644 --- a/homeassistant/components/sensor/ohmconnect.py +++ b/homeassistant/components/sensor/ohmconnect.py @@ -31,7 +31,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the OhmConnect sensor.""" name = config.get(CONF_NAME) diff --git a/homeassistant/components/sensor/onewire.py b/homeassistant/components/sensor/onewire.py index 43105d54e38dfbbea1c15f40ec25fcb7e4280d66..95ad5f1713d460d6068bd0b8d9500d03ae2cef09 100644 --- a/homeassistant/components/sensor/onewire.py +++ b/homeassistant/components/sensor/onewire.py @@ -47,7 +47,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the one wire Sensors.""" base_dir = config.get(CONF_MOUNT_DIR) diff --git a/homeassistant/components/sensor/opensky.py b/homeassistant/components/sensor/opensky.py index bd071ace57854c8aae2b6f75e8a7e95a362157a8..af0491cc26cf967c29d9cc6d3f648c9812744b8e 100644 --- a/homeassistant/components/sensor/opensky.py +++ b/homeassistant/components/sensor/opensky.py @@ -50,7 +50,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Open Sky platform.""" latitude = config.get(CONF_LATITUDE, hass.config.latitude) diff --git a/homeassistant/components/sensor/pilight.py b/homeassistant/components/sensor/pilight.py index 596887998ecd5573b58b5d43af015bb3cad27a54..9784cc3dc4ca3505d6d9565051375a2529fc76de 100644 --- a/homeassistant/components/sensor/pilight.py +++ b/homeassistant/components/sensor/pilight.py @@ -30,7 +30,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up Pilight Sensor.""" add_devices([PilightSensor( diff --git a/homeassistant/components/sensor/plex.py b/homeassistant/components/sensor/plex.py index b61e1bce0da05b1b1ecf987efb5d3479cca4cc97..5aa156a0ac6df7c1c928614c80dc74a0626149c1 100644 --- a/homeassistant/components/sensor/plex.py +++ b/homeassistant/components/sensor/plex.py @@ -41,7 +41,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Plex sensor.""" name = config.get(CONF_NAME) diff --git a/homeassistant/components/sensor/postnl.py b/homeassistant/components/sensor/postnl.py index 63a9c1d67d5ae2f0372b9aecf4c25c1079fc2106..0e296fa56bd61498b155b88182fdf3e70318e59a 100644 --- a/homeassistant/components/sensor/postnl.py +++ b/homeassistant/components/sensor/postnl.py @@ -35,7 +35,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the PostNL sensor platform.""" from postnl_api import PostNL_API, UnauthorizedException diff --git a/homeassistant/components/sensor/pyload.py b/homeassistant/components/sensor/pyload.py index 9e1c0875169197feb7e3b4211409eeaa56f2a34e..cc4ce1e64485e6482f76391669479be5744758a5 100644 --- a/homeassistant/components/sensor/pyload.py +++ b/homeassistant/components/sensor/pyload.py @@ -43,7 +43,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the pyLoad sensors.""" host = config.get(CONF_HOST) diff --git a/homeassistant/components/sensor/qnap.py b/homeassistant/components/sensor/qnap.py index 7dd795d8f8d36be23911eeeb2ab18efac82e8b96..3d9704875c9cc5fe7627cf882098d0b72746764a 100644 --- a/homeassistant/components/sensor/qnap.py +++ b/homeassistant/components/sensor/qnap.py @@ -102,7 +102,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the QNAP NAS sensor.""" api = QNAPStatsAPI(config) diff --git a/homeassistant/components/sensor/skybeacon.py b/homeassistant/components/sensor/skybeacon.py index 61933614a7471d1d77efff5f08486a3e8d6c67ec..53cbaab19a58eb7fce87b8599afd3cc4ba27d646 100644 --- a/homeassistant/components/sensor/skybeacon.py +++ b/homeassistant/components/sensor/skybeacon.py @@ -39,7 +39,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Skybeacon sensor.""" # pylint: disable=unreachable diff --git a/homeassistant/components/sensor/spotcrime.py b/homeassistant/components/sensor/spotcrime.py index 08177c9a7b92000970b6e4e272388b7256606979..daa520f2ede07724151c211fbe53b92d45c1fc2a 100644 --- a/homeassistant/components/sensor/spotcrime.py +++ b/homeassistant/components/sensor/spotcrime.py @@ -44,7 +44,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Crime Reports platform.""" latitude = config.get(CONF_LATITUDE, hass.config.latitude) diff --git a/homeassistant/components/sensor/steam_online.py b/homeassistant/components/sensor/steam_online.py index 88cb786e66d8d9654a7b305b691f04b76d3ac554..e22e1594b5547907c4c8a7f6067b3449954eccf5 100644 --- a/homeassistant/components/sensor/steam_online.py +++ b/homeassistant/components/sensor/steam_online.py @@ -36,7 +36,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Steam platform.""" import steam as steamod diff --git a/homeassistant/components/sensor/supervisord.py b/homeassistant/components/sensor/supervisord.py index fd0c6292de2bb4efeb63be1c684fdcf445ccea71..5a302462bbf188002327cf71a304f944c00c9784 100644 --- a/homeassistant/components/sensor/supervisord.py +++ b/homeassistant/components/sensor/supervisord.py @@ -26,7 +26,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Supervisord platform.""" url = config.get(CONF_URL) diff --git a/homeassistant/components/sensor/systemmonitor.py b/homeassistant/components/sensor/systemmonitor.py index 517ee6509f76a19f59bd5713f863d97dbfb38d42..1883ee89d4e2f650329f6e80f8a7d21a073a976e 100644 --- a/homeassistant/components/sensor/systemmonitor.py +++ b/homeassistant/components/sensor/systemmonitor.py @@ -67,7 +67,6 @@ IF_ADDRS = { } -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the system monitor sensors.""" dev = [] diff --git a/homeassistant/components/sensor/tellstick.py b/homeassistant/components/sensor/tellstick.py index 8355add47e92a5f7efb59bbb2b33cb0a2a1f11f0..de929aa094272bed33c97311dceb6362e5e40857 100644 --- a/homeassistant/components/sensor/tellstick.py +++ b/homeassistant/components/sensor/tellstick.py @@ -37,7 +37,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Tellstick sensors.""" import tellcore.telldus as telldus diff --git a/homeassistant/components/sensor/temper.py b/homeassistant/components/sensor/temper.py index 973e07d9cf343550839d47b8cb5a644ab92d1367..f0a3e15834cf3e8d67925b19d698fbc56844e7e8 100644 --- a/homeassistant/components/sensor/temper.py +++ b/homeassistant/components/sensor/temper.py @@ -33,7 +33,6 @@ def get_temper_devices(): return TemperHandler().get_devices() -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Temper sensors.""" temp_unit = hass.config.units.temperature_unit diff --git a/homeassistant/components/sensor/template.py b/homeassistant/components/sensor/template.py index 65f49998dbf9fa40d52f8b744b5650f64b53df13..23c7c13f0edec1a278d218346c363775d0878e73 100644 --- a/homeassistant/components/sensor/template.py +++ b/homeassistant/components/sensor/template.py @@ -42,7 +42,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ @asyncio.coroutine -# pylint: disable=unused-argument def async_setup_platform(hass, config, async_add_devices, discovery_info=None): """Set up the template sensors.""" sensors = [] diff --git a/homeassistant/components/sensor/torque.py b/homeassistant/components/sensor/torque.py index 98fad475d52a2e60ef28fc548bbadab861332fb7..4ed1b5907cf42481595b07a060d36b69771d01bf 100644 --- a/homeassistant/components/sensor/torque.py +++ b/homeassistant/components/sensor/torque.py @@ -46,7 +46,6 @@ def convert_pid(value): return int(value, 16) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Torque platform.""" vehicle = config.get(CONF_NAME) diff --git a/homeassistant/components/sensor/twitch.py b/homeassistant/components/sensor/twitch.py index b3e227aea72247115e55f68d5e256bca0f399838..250911b49b109603fe47a21a15b94ebcc1402b31 100644 --- a/homeassistant/components/sensor/twitch.py +++ b/homeassistant/components/sensor/twitch.py @@ -31,7 +31,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Twitch platform.""" channels = config.get(CONF_CHANNELS, []) diff --git a/homeassistant/components/sensor/ups.py b/homeassistant/components/sensor/ups.py index c51ae67475fe70055edcc21eb29507bf463c6409..a864df384ad0114a2ec1cd38b3ee4652795a930d 100644 --- a/homeassistant/components/sensor/ups.py +++ b/homeassistant/components/sensor/ups.py @@ -38,7 +38,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the UPS platform.""" import upsmychoice diff --git a/homeassistant/components/sensor/worldtidesinfo.py b/homeassistant/components/sensor/worldtidesinfo.py index 8884d790eed036f575c221347b516ca813034663..05d61173da00f12bc5dddee06fb2a8b94e51c83d 100644 --- a/homeassistant/components/sensor/worldtidesinfo.py +++ b/homeassistant/components/sensor/worldtidesinfo.py @@ -31,7 +31,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the WorldTidesInfo sensor.""" name = config.get(CONF_NAME) diff --git a/homeassistant/components/sensor/xbox_live.py b/homeassistant/components/sensor/xbox_live.py index 0c7b8b48f624ceb550872c7801f4ce242b7f1924..250c74ee4933c4a3edcebfc88ea92bd7106d1027 100644 --- a/homeassistant/components/sensor/xbox_live.py +++ b/homeassistant/components/sensor/xbox_live.py @@ -27,7 +27,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Xbox platform.""" from xboxapi import xbox_api diff --git a/homeassistant/components/sensor/xiaomi_miio.py b/homeassistant/components/sensor/xiaomi_miio.py index f7bc9488cc5e4414322a65c3f3b73238d2b2081c..a70d701fac639b0d57b35f78d87cf20a9b80f142 100644 --- a/homeassistant/components/sensor/xiaomi_miio.py +++ b/homeassistant/components/sensor/xiaomi_miio.py @@ -36,7 +36,6 @@ ATTR_MODEL = 'model' SUCCESS = ['ok'] -# pylint: disable=unused-argument async def async_setup_platform(hass, config, async_add_devices, discovery_info=None): """Set up the sensor from config.""" diff --git a/homeassistant/components/sleepiq.py b/homeassistant/components/sleepiq.py index 3b74b79b36b018e6f0c9919b6e930903ae2567b9..df36eef2f9ef9a680a1c558805726be9633e0f90 100644 --- a/homeassistant/components/sleepiq.py +++ b/homeassistant/components/sleepiq.py @@ -51,7 +51,6 @@ def setup(hass, config): Will automatically load sensor components to support devices discovered on the account. """ - # pylint: disable=global-statement global DATA from sleepyq import Sleepyq diff --git a/homeassistant/components/switch/bbb_gpio.py b/homeassistant/components/switch/bbb_gpio.py index 6dc5df4ffe35134d23f4b718958b7916e8c4c5c8..5412f559b7391a270ae10fe8aa1ebfad40aeb52b 100644 --- a/homeassistant/components/switch/bbb_gpio.py +++ b/homeassistant/components/switch/bbb_gpio.py @@ -34,7 +34,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the BeagleBone Black GPIO devices.""" pins = config.get(CONF_PINS) diff --git a/homeassistant/components/switch/command_line.py b/homeassistant/components/switch/command_line.py index 478b1c6e9adf5825e10f0b9ebd2dbcef53668c1d..127c7578940f40b85325ba84a5036246b29db72e 100644 --- a/homeassistant/components/switch/command_line.py +++ b/homeassistant/components/switch/command_line.py @@ -32,7 +32,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Find and return switches controlled by shell commands.""" devices = config.get(CONF_SWITCHES, {}) diff --git a/homeassistant/components/switch/deluge.py b/homeassistant/components/switch/deluge.py index da0b3bf3228966744ccccd3ac721702d5cf7db10..c71c3865f5dc19a65a54402a4a115d1be4bcffea 100644 --- a/homeassistant/components/switch/deluge.py +++ b/homeassistant/components/switch/deluge.py @@ -32,7 +32,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Deluge switch.""" from deluge_client import DelugeRPCClient diff --git a/homeassistant/components/switch/demo.py b/homeassistant/components/switch/demo.py index 83b8ae796bb0589b9bf56bea8371e67e7fe28bbb..7e22f962330d5b15eefe1e5aec61b8ad46b10960 100644 --- a/homeassistant/components/switch/demo.py +++ b/homeassistant/components/switch/demo.py @@ -8,7 +8,6 @@ from homeassistant.components.switch import SwitchDevice from homeassistant.const import DEVICE_DEFAULT_NAME -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices_callback, discovery_info=None): """Set up the demo switches.""" add_devices_callback([ diff --git a/homeassistant/components/switch/dlink.py b/homeassistant/components/switch/dlink.py index 5d727e72138db7d9d2cbe655b59a499dca9dec5b..1c7253c4ec378fb7f570dda886a026986b2b50f2 100644 --- a/homeassistant/components/switch/dlink.py +++ b/homeassistant/components/switch/dlink.py @@ -36,7 +36,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up a D-Link Smart Plug.""" from pyW215.pyW215 import SmartPlug diff --git a/homeassistant/components/switch/edimax.py b/homeassistant/components/switch/edimax.py index 40ebb54b60307418a8b0f5acfaa82cb2209212fd..9cd7c48488649d333bfd870c884bf18cd0a4c134 100644 --- a/homeassistant/components/switch/edimax.py +++ b/homeassistant/components/switch/edimax.py @@ -29,7 +29,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Find and return Edimax Smart Plugs.""" from pyedimax.smartplug import SmartPlug diff --git a/homeassistant/components/switch/flux.py b/homeassistant/components/switch/flux.py index 21689dcca0fa5a5113d039d579f4cd3c366b7cdd..f57843cdaa0f7f80b2ee308ffd0c6dd124c2782d 100644 --- a/homeassistant/components/switch/flux.py +++ b/homeassistant/components/switch/flux.py @@ -95,7 +95,6 @@ def set_lights_rgb(hass, lights, rgb, transition): transition=transition) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Flux switches.""" name = config.get(CONF_NAME) diff --git a/homeassistant/components/switch/gc100.py b/homeassistant/components/switch/gc100.py index f4175926aa06101cdcec49b5612f6d4c69824ad3..54c3b5e942aeae694a2760cbf1763428741d7eb2 100644 --- a/homeassistant/components/switch/gc100.py +++ b/homeassistant/components/switch/gc100.py @@ -23,7 +23,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the GC100 devices.""" switches = [] diff --git a/homeassistant/components/switch/isy994.py b/homeassistant/components/switch/isy994.py index efdda6ed40cb79452cb94c8c38048eb8792be429..3d29c53bd7cb08d944f9ac50b967397b54654090 100644 --- a/homeassistant/components/switch/isy994.py +++ b/homeassistant/components/switch/isy994.py @@ -15,7 +15,6 @@ from homeassistant.helpers.typing import ConfigType # noqa _LOGGER = logging.getLogger(__name__) -# pylint: disable=unused-argument def setup_platform(hass, config: ConfigType, add_devices: Callable[[list], None], discovery_info=None): """Set up the ISY994 switch platform.""" diff --git a/homeassistant/components/switch/kankun.py b/homeassistant/components/switch/kankun.py index 88a07b68cd94cbc3afe7b48873993a51b7676983..c830e2299f6ce4e923c585d760835e21449b80d3 100644 --- a/homeassistant/components/switch/kankun.py +++ b/homeassistant/components/switch/kankun.py @@ -34,7 +34,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices_callback, discovery_info=None): """Set up Kankun Wifi switches.""" switches = config.get('switches', {}) diff --git a/homeassistant/components/switch/knx.py b/homeassistant/components/switch/knx.py index a96f96a9c5c242726d796949a2b6f3b127cc0c5a..c13631ca5e67c273fc567af647c303c00fc4ab23 100644 --- a/homeassistant/components/switch/knx.py +++ b/homeassistant/components/switch/knx.py @@ -72,7 +72,6 @@ class KNXSwitch(SwitchDevice): """Register callbacks to update hass after device was changed.""" async def after_update_callback(device): """Call after device was updated.""" - # pylint: disable=unused-argument await self.async_update_ha_state() self.device.register_device_updated_cb(after_update_callback) diff --git a/homeassistant/components/switch/lutron_caseta.py b/homeassistant/components/switch/lutron_caseta.py index da36c76f41dbce33452c1045908a2a7eeaf5b34e..f5e7cf2836f8921f1eb732d1f08b92d8bf48c6bf 100644 --- a/homeassistant/components/switch/lutron_caseta.py +++ b/homeassistant/components/switch/lutron_caseta.py @@ -16,7 +16,6 @@ _LOGGER = logging.getLogger(__name__) DEPENDENCIES = ['lutron_caseta'] -# pylint: disable=unused-argument @asyncio.coroutine def async_setup_platform(hass, config, async_add_devices, discovery_info=None): """Set up Lutron switch.""" diff --git a/homeassistant/components/switch/orvibo.py b/homeassistant/components/switch/orvibo.py index e039a29809d4ed1687ac37066f24b5684008e51c..fdb4752f594432f91305fdea4f41c478d06832d6 100644 --- a/homeassistant/components/switch/orvibo.py +++ b/homeassistant/components/switch/orvibo.py @@ -31,7 +31,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices_callback, discovery_info=None): """Set up S20 switches.""" from orvibo.s20 import discover, S20, S20Exception diff --git a/homeassistant/components/switch/pulseaudio_loopback.py b/homeassistant/components/switch/pulseaudio_loopback.py index 007e74e14fd37cb9a12dfba570f79c2d2ae1d6aa..e25368f3c5cffc2b651cbc2818d19b80d41b9171 100644 --- a/homeassistant/components/switch/pulseaudio_loopback.py +++ b/homeassistant/components/switch/pulseaudio_loopback.py @@ -54,7 +54,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Read in all of our configuration, and initialize the loopback switch.""" name = config.get(CONF_NAME) diff --git a/homeassistant/components/switch/raspihats.py b/homeassistant/components/switch/raspihats.py index 7be3a6f0baafe63fd089af3b41c85ec0c452911c..7173ad35dafbfd87e58329ef24767ca89e35ffd2 100644 --- a/homeassistant/components/switch/raspihats.py +++ b/homeassistant/components/switch/raspihats.py @@ -39,7 +39,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the raspihats switch devices.""" I2CHatSwitch.I2C_HATS_MANAGER = hass.data[I2C_HATS_MANAGER] diff --git a/homeassistant/components/switch/rest.py b/homeassistant/components/switch/rest.py index 9c589d1d95b9eb20a5bf07375a87ade5c6b27e2e..914408406a9e80bcb234737f8d07aecc00663b71 100644 --- a/homeassistant/components/switch/rest.py +++ b/homeassistant/components/switch/rest.py @@ -47,7 +47,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument @asyncio.coroutine def async_setup_platform(hass, config, async_add_devices, discovery_info=None): """Set up the RESTful switch.""" diff --git a/homeassistant/components/switch/rpi_gpio.py b/homeassistant/components/switch/rpi_gpio.py index ac38da1c6a7b9d6081d6fe2056dd47c88d421594..26de2a78e1899aa744e423987bf238e61785f6a2 100644 --- a/homeassistant/components/switch/rpi_gpio.py +++ b/homeassistant/components/switch/rpi_gpio.py @@ -34,7 +34,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Raspberry PI GPIO devices.""" invert_logic = config.get(CONF_INVERT_LOGIC) diff --git a/homeassistant/components/switch/rpi_rf.py b/homeassistant/components/switch/rpi_rf.py index 40200f05806343eac4d1fd247dc4fba5c39b0a40..62c92ad2d968c6950d88c2c6c307fa9241252930 100644 --- a/homeassistant/components/switch/rpi_rf.py +++ b/homeassistant/components/switch/rpi_rf.py @@ -44,7 +44,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument, import-error, no-member +# pylint: disable=import-error, no-member def setup_platform(hass, config, add_devices, discovery_info=None): """Find and return switches controlled by a generic RF device via GPIO.""" import rpi_rf diff --git a/homeassistant/components/switch/tellstick.py b/homeassistant/components/switch/tellstick.py index ae19e77c2e5a92218cf05807af345b1e48550af2..5f7930a8a7c47a87e54949e047274a247373d41a 100644 --- a/homeassistant/components/switch/tellstick.py +++ b/homeassistant/components/switch/tellstick.py @@ -10,7 +10,6 @@ from homeassistant.components.tellstick import ( from homeassistant.helpers.entity import ToggleEntity -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up Tellstick switches.""" if (discovery_info is None or diff --git a/homeassistant/components/switch/telnet.py b/homeassistant/components/switch/telnet.py index c3a608b96924a1053752220aaaf7c5902c53c82d..381f2ec9bec829b421164c173d8f78ebc546b533 100644 --- a/homeassistant/components/switch/telnet.py +++ b/homeassistant/components/switch/telnet.py @@ -38,7 +38,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ SCAN_INTERVAL = timedelta(seconds=10) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Find and return switches controlled by telnet commands.""" devices = config.get(CONF_SWITCHES, {}) diff --git a/homeassistant/components/switch/template.py b/homeassistant/components/switch/template.py index 93ebf98e9ace677ea612353c62a6aa60c537adc5..a6fa8241940b1c83e4676eef4683cfb73c45cb1b 100644 --- a/homeassistant/components/switch/template.py +++ b/homeassistant/components/switch/template.py @@ -44,7 +44,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ @asyncio.coroutine -# pylint: disable=unused-argument def async_setup_platform(hass, config, async_add_devices, discovery_info=None): """Set up the Template switch.""" switches = [] diff --git a/homeassistant/components/switch/tplink.py b/homeassistant/components/switch/tplink.py index 1eca5284f76f2da46b2f191a70082feb1aa1a5a6..cd2a0f189fc625b61ee2bf096c25328b25f1366b 100644 --- a/homeassistant/components/switch/tplink.py +++ b/homeassistant/components/switch/tplink.py @@ -32,7 +32,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the TPLink switch platform.""" from pyHS100 import SmartPlug diff --git a/homeassistant/components/switch/transmission.py b/homeassistant/components/switch/transmission.py index 840fdae44d935ee88c5ee9f0247c41627420c9ff..ffe285a23f3942eb450b7d802ab26a6cfade4962 100644 --- a/homeassistant/components/switch/transmission.py +++ b/homeassistant/components/switch/transmission.py @@ -31,7 +31,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ }) -# pylint: disable=unused-argument def setup_platform(hass, config, add_devices, discovery_info=None): """Set up the Transmission switch.""" import transmissionrpc diff --git a/homeassistant/components/switch/wemo.py b/homeassistant/components/switch/wemo.py index 4f06f94155831a8c06370f8108bdb6e17faa0c67..569566bcbfb6f4818c3fa32d44033d2c1c43328c 100644 --- a/homeassistant/components/switch/wemo.py +++ b/homeassistant/components/switch/wemo.py @@ -33,7 +33,7 @@ WEMO_OFF = 0 WEMO_STANDBY = 8 -# 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): """Set up discovered WeMo switches.""" import pywemo.discovery as discovery diff --git a/homeassistant/components/switch/xiaomi_miio.py b/homeassistant/components/switch/xiaomi_miio.py index b0d251822b0b1c9b6e1e403b66d278a706163a0f..1e11b844fdf56cca6a5fbf7c5170b044a1405bdc 100644 --- a/homeassistant/components/switch/xiaomi_miio.py +++ b/homeassistant/components/switch/xiaomi_miio.py @@ -97,7 +97,6 @@ SERVICE_TO_METHOD = { } -# pylint: disable=unused-argument async def async_setup_platform(hass, config, async_add_devices, discovery_info=None): """Set up the switch from config.""" diff --git a/homeassistant/components/vera.py b/homeassistant/components/vera.py index 2603f61eb751bae4ad24e29d9e92fefbf81de8d9..cbbf279bb8c8d8da7974e5dabcac2c5e4647b329 100644 --- a/homeassistant/components/vera.py +++ b/homeassistant/components/vera.py @@ -53,7 +53,7 @@ VERA_COMPONENTS = [ ] -# pylint: disable=unused-argument, too-many-function-args +# pylint: disable=too-many-function-args def setup(hass, base_config): """Set up for Vera devices.""" import pyvera as veraApi diff --git a/homeassistant/components/wemo.py b/homeassistant/components/wemo.py index 9929b64be7dacc3839a8a478da48b3eb01751314..15b75b2f7a82b4f4f4ecbe9a5b49e397b60f6819 100644 --- a/homeassistant/components/wemo.py +++ b/homeassistant/components/wemo.py @@ -44,7 +44,7 @@ CONFIG_SCHEMA = vol.Schema({ }, extra=vol.ALLOW_EXTRA) -# pylint: disable=unused-argument, too-many-function-args +# pylint: disable=too-many-function-args def setup(hass, config): """Set up for WeMo devices.""" import pywemo diff --git a/homeassistant/components/wink/__init__.py b/homeassistant/components/wink/__init__.py index f3ec360462e1910a8984451e675c5cb417621505..e4dfc17246a42704301b54206f9dd5550a5d43ff 100644 --- a/homeassistant/components/wink/__init__.py +++ b/homeassistant/components/wink/__init__.py @@ -210,7 +210,6 @@ def _request_oauth_completion(hass, config): "Failed to register, please try again.") return - # pylint: disable=unused-argument def wink_configuration_callback(callback_data): """Call setup again.""" setup(hass, config) diff --git a/homeassistant/core.py b/homeassistant/core.py index bc3b598180c0b3acf6e03a9d02e930f920f87340..5e6dcd81310b0d3b695688907a78763cf12945f8 100644 --- a/homeassistant/core.py +++ b/homeassistant/core.py @@ -4,7 +4,7 @@ Core components of Home Assistant. Home Assistant is a Home Automation framework for observing the state of entities and react to changes. """ -# pylint: disable=unused-import, too-many-lines +# pylint: disable=unused-import import asyncio from concurrent.futures import ThreadPoolExecutor import enum diff --git a/homeassistant/util/dt.py b/homeassistant/util/dt.py index 7b5b996a3a35555460754c32b4f01d574fe4db53..cd440783cc3e01b96e9965b0f431de84ad8016e8 100644 --- a/homeassistant/util/dt.py +++ b/homeassistant/util/dt.py @@ -27,7 +27,7 @@ def set_default_time_zone(time_zone: dt.tzinfo) -> None: Async friendly. """ - global DEFAULT_TIME_ZONE # pylint: disable=global-statement + global DEFAULT_TIME_ZONE # NOTE: Remove in the future in favour of typing assert isinstance(time_zone, dt.tzinfo)