More pylint 2 fixes (#15565)
## Description: More fixes flagged by pylint 2 that don't hurt to have before the actual pylint 2 upgrade (which I'll submit soon). ## Checklist: - [ ] The code change is tested and works locally. - [x] Local tests pass with `tox`. **Your PR cannot be merged unless tests pass**
This commit is contained in:
1 parent
ea18e06b08
commit
2f7b79764a
242 files changed
+284
-284
No files matched your search
@@ -231,7 +231,7 @@ def async_setup(hass: HomeAssistantType, config: ConfigType):
|
||||
return True
|
||||
|
||||
|
||||
class DeviceTracker(object):
|
||||
class DeviceTracker:
|
||||
"""Representation of a device tracker."""
|
||||
|
||||
def __init__(self, hass: HomeAssistantType, consider_home: timedelta,
|
||||
@@ -577,7 +577,7 @@ class Device(Entity):
|
||||
state.attributes[ATTR_LONGITUDE])
|
||||
|
||||
|
||||
class DeviceScanner(object):
|
||||
class DeviceScanner:
|
||||
"""Device scanner object."""
|
||||
|
||||
hass = None # type: HomeAssistantType
|
||||
|
||||
@@ -193,7 +193,7 @@ class AutomaticAuthCallbackView(HomeAssistantView):
|
||||
return response
|
||||
|
||||
|
||||
class AutomaticData(object):
|
||||
class AutomaticData:
|
||||
"""A class representing an Automatic cloud service connection."""
|
||||
|
||||
def __init__(self, hass, client, session, devices, async_see):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -28,7 +28,7 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({
|
||||
})
|
||||
|
||||
|
||||
class Host(object):
|
||||
class Host:
|
||||
"""Host object with ping detection."""
|
||||
|
||||
def __init__(self, ip_address, dev_id, hass, config):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user