Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More pylint 2 fixes #15565

Merged
merged 2 commits into from
Jul 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion homeassistant/components/abode.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
]


class AbodeSystem(object):
class AbodeSystem:
"""Abode System class."""

def __init__(self, username, password, cache,
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/ads/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def handle_write_data_by_name(call):
)


class AdsHub(object):
class AdsHub:
"""Representation of an ADS connection."""

def __init__(self, ads_client):
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/alexa/intent.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def resolve_slot_synonyms(key, request):
return resolved_value


class AlexaResponse(object):
class AlexaResponse:
"""Help generating the response for Alexa."""

def __init__(self, hass, intent_info):
Expand Down
8 changes: 4 additions & 4 deletions homeassistant/components/alexa/smart_home.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
ENTITY_ADAPTERS = Registry()


class _DisplayCategory(object):
class _DisplayCategory:
"""Possible display categories for Discovery response.
https://developer.amazon.com/docs/device-apis/alexa-discovery.html#display-categories
Expand Down Expand Up @@ -153,7 +153,7 @@ class _UnsupportedProperty(Exception):
"""This entity does not support the requested Smart Home API property."""


class _AlexaEntity(object):
class _AlexaEntity:
"""An adaptation of an entity, expressed in Alexa's terms.
The API handlers should manipulate entities only through this interface.
Expand Down Expand Up @@ -208,7 +208,7 @@ def interfaces(self):
raise NotImplementedError


class _AlexaInterface(object):
class _AlexaInterface:
def __init__(self, entity):
self.entity = entity

Expand Down Expand Up @@ -615,7 +615,7 @@ def interfaces(self):
yield _AlexaTemperatureSensor(self.entity)


class _Cause(object):
class _Cause:
"""Possible causes for property changes.
https://developer.amazon.com/docs/smarthome/state-reporting-for-a-smart-home-skill.html#cause-object
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/amcrest.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def setup(hass, config):
return True


class AmcrestDevice(object):
class AmcrestDevice:
"""Representation of a base Amcrest discovery device."""

def __init__(self, camera, name, authentication, ffmpeg_arguments,
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/apcupsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def setup(hass, config):
return True


class APCUPSdData(object):
class APCUPSdData:
"""Stores the data retrieved from APCUPSd.
For each entity to use, acts as the single point responsible for fetching
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/arduino.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def start_arduino(event):
return True


class ArduinoBoard(object):
class ArduinoBoard:
"""Representation of an Arduino board."""

def __init__(self, port):
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/asterisk_mbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def setup(hass, config):
return True


class AsteriskData(object):
class AsteriskData:
"""Store Asterisk mailbox data."""

def __init__(self, hass, host, port, password):
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/binary_sensor/arest.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def update(self):
self.arest.update()


class ArestData(object):
class ArestData:
"""Class for handling the data retrieval for pins."""

def __init__(self, resource, pin):
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/binary_sensor/aurora.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def update(self):
self.aurora_data.update()


class AuroraData(object):
class AuroraData:
"""Get aurora forecast."""

def __init__(self, latitude, longitude, threshold):
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/binary_sensor/hikvision.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
add_entities(entities)


class HikvisionData(object):
class HikvisionData:
"""Hikvision device event stream object."""

def __init__(self, hass, url, port, name, username, password):
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/binary_sensor/iss.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def update(self):
self.iss_data.update()


class IssData(object):
class IssData:
"""Get data from the ISS API."""

def __init__(self, latitude, longitude):
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/binary_sensor/ping.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def update(self):
self.ping.update()


class PingData(object):
class PingData:
"""The Class for handling the data retrieval."""

def __init__(self, host, count):
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/binary_sensor/tapsaff.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def update(self):
self.data.update()


class TapsAffData(object):
class TapsAffData:
"""Class for handling the data retrieval for pins."""

def __init__(self, location):
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/binary_sensor/zwave.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from homeassistant.helpers.event import track_point_in_time
from homeassistant.components import zwave
from homeassistant.components.zwave import workaround
from homeassistant.components.zwave import async_setup_platform # noqa # pylint: disable=unused-import
from homeassistant.components.zwave import async_setup_platform # noqa pylint: disable=unused-import
from homeassistant.components.binary_sensor import (
DOMAIN,
BinarySensorDevice)
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/blink.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
})


class BlinkSystem(object):
class BlinkSystem:
"""Blink System class."""

def __init__(self, config_info):
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/bloomsky.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def setup(hass, config):
return True


class BloomSky(object):
class BloomSky:
"""Handle all communication with the BloomSky API."""

# API documentation at http://weatherlution.com/bloomsky-api/
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/bmw_connected_drive/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def execute_service(call):
return cd_account


class BMWConnectedDriveAccount(object):
class BMWConnectedDriveAccount:
"""Representation of a BMW vehicle."""

def __init__(self, username: str, password: str, region_str: str,
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/calendar/caldav.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ async def async_get_events(self, hass, start_date, end_date):
return await self.data.async_get_events(hass, start_date, end_date)


class WebDavCalendarData(object):
class WebDavCalendarData:
"""Class to utilize the calendar dav client object to get next event."""

def __init__(self, calendar, include_all_day, search):
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/calendar/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
])


class DemoGoogleCalendarData(object):
class DemoGoogleCalendarData:
"""Representation of a Demo Calendar element."""

event = {}
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/calendar/google.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async def async_get_events(self, hass, start_date, end_date):
return await self.data.async_get_events(hass, start_date, end_date)


class GoogleCalendarData(object):
class GoogleCalendarData:
"""Class to utilize calendar service object to get next event."""

def __init__(self, calendar_service, calendar_id, search,
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/calendar/todoist.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def device_state_attributes(self):
return attributes


class TodoistProjectData(object):
class TodoistProjectData:
"""
Class used by the Task Device service object to hold all Todoist Tasks.
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/canary.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def setup(hass, config):
return True


class CanaryData(object):
class CanaryData:
"""Get the latest data and update the states."""

def __init__(self, username, password, timeout):
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/climate/netatmo.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def update(self):
self._away = self._data.setpoint_mode == 'away'


class ThermostatData(object):
class ThermostatData:
"""Get the latest data from Netatmo."""

def __init__(self, auth, device=None):
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/climate/zwave.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
SUPPORT_TARGET_TEMPERATURE, SUPPORT_FAN_MODE,
SUPPORT_OPERATION_MODE, SUPPORT_SWING_MODE)
from homeassistant.components.zwave import ZWaveDeviceEntity
from homeassistant.components.zwave import async_setup_platform # noqa # pylint: disable=unused-import
from homeassistant.components.zwave import async_setup_platform # noqa pylint: disable=unused-import
from homeassistant.const import (
STATE_OFF, TEMP_CELSIUS, TEMP_FAHRENHEIT, ATTR_TEMPERATURE)

Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/coinbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def setup(hass, config):
return True


class CoinbaseData(object):
class CoinbaseData:
"""Get the latest data and update the states."""

def __init__(self, api_key, api_secret):
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/comfoconnect.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def _shutdown(_event):
return True


class ComfoConnectBridge(object):
class ComfoConnectBridge:
"""Representation of a ComfoConnect bridge."""

def __init__(self, hass, bridge, name, token, friendly_name, pin):
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/configurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def async_setup(hass, config):
return True


class Configurator(object):
class Configurator:
"""The class to keep track of current configuration requests."""

def __init__(self, hass):
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/cover/zwave.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
DOMAIN, SUPPORT_OPEN, SUPPORT_CLOSE, ATTR_POSITION)
from homeassistant.components.zwave import ZWaveDeviceEntity
from homeassistant.components import zwave
from homeassistant.components.zwave import async_setup_platform # noqa # pylint: disable=unused-import
from homeassistant.components.zwave import async_setup_platform # noqa pylint: disable=unused-import
from homeassistant.components.zwave import workaround
from homeassistant.components.cover import CoverDevice

Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/daikin.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def daikin_api_setup(hass, host, name=None):
return api


class DaikinApi(object):
class DaikinApi:
"""Keep the Daikin instance in one place and centralize the update."""

def __init__(self, device, name):
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/deconz/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ async def async_unload_entry(hass, config_entry):
return True


class DeconzEvent(object):
class DeconzEvent:
"""When you want signals instead of entities.
Stateless sensors such as remotes are expected to generate an event
Expand Down
4 changes: 2 additions & 2 deletions homeassistant/components/device_tracker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def async_see_service(call):
return True


class DeviceTracker(object):
class DeviceTracker:
"""Representation of a device tracker."""

def __init__(self, hass: HomeAssistantType, consider_home: timedelta,
Expand Down Expand Up @@ -577,7 +577,7 @@ def async_added_to_hass(self):
state.attributes[ATTR_LONGITUDE])


class DeviceScanner(object):
class DeviceScanner:
"""Device scanner object."""

hass = None # type: HomeAssistantType
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/device_tracker/automatic.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def get(self, request): # pylint: disable=no-self-use
return response


class AutomaticData(object):
class AutomaticData:
"""A class representing an Automatic cloud service connection."""

def __init__(self, hass, client, session, devices, async_see):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def setup_scanner(hass, config, see, discovery_info=None):
return True


class BMWDeviceTracker(object):
class BMWDeviceTracker:
"""BMW Connected Drive device tracker."""

def __init__(self, see, vehicle):
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/device_tracker/freebox.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def _build_device(device_dict):
device_dict['l3connectivities'][0]['addr'])


class FreeboxDeviceScanner(object):
class FreeboxDeviceScanner:
"""This class scans for devices connected to the Freebox."""

def __init__(self, hass, config, async_see):
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/device_tracker/google_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def setup_scanner(hass, config: ConfigType, see, discovery_info=None):
return scanner.success_init


class GoogleMapsScanner(object):
class GoogleMapsScanner:
"""Representation of an Google Maps location sharing account."""

def __init__(self, hass, config: ConfigType, see) -> None:
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/device_tracker/ping.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
})


class Host(object):
class Host:
"""Host object with ping detection."""

def __init__(self, ip_address, dev_id, hass, config):
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/device_tracker/tesla.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def setup_scanner(hass, config, see, discovery_info=None):
return True


class TeslaDeviceTracker(object):
class TeslaDeviceTracker:
"""A class representing a Tesla device."""

def __init__(self, hass, config, see, tesla_devices):
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/device_tracker/tile.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ async def async_setup_scanner(hass, config, async_see, discovery_info=None):
return await scanner.async_init()


class TileScanner(object):
class TileScanner:
"""Define an object to retrieve Tile data."""

def __init__(self, client, hass, async_see, types, show_inactive):
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/device_tracker/trackr.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def setup_scanner(hass, config: dict, see, discovery_info=None):
return True


class TrackRDeviceScanner(object):
class TrackRDeviceScanner:
"""A class representing a TrackR device."""

def __init__(self, hass, config: dict, see) -> None:
Expand Down
Loading