diff --git a/homeassistant/components/abode/alarm_control_panel.py b/homeassistant/components/abode/alarm_control_panel.py index 88a072bd79c..b9a0a8ce192 100644 --- a/homeassistant/components/abode/alarm_control_panel.py +++ b/homeassistant/components/abode/alarm_control_panel.py @@ -21,11 +21,6 @@ _LOGGER = logging.getLogger(__name__) ICON = "mdi:security" -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Platform uses config entry setup.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up Abode alarm control panel device.""" data = hass.data[DOMAIN] diff --git a/homeassistant/components/abode/binary_sensor.py b/homeassistant/components/abode/binary_sensor.py index 56c7bbcc1ff..c27357ca076 100644 --- a/homeassistant/components/abode/binary_sensor.py +++ b/homeassistant/components/abode/binary_sensor.py @@ -13,11 +13,6 @@ from .const import DOMAIN, SIGNAL_TRIGGER_QUICK_ACTION _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Platform uses config entry setup.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up Abode binary sensor devices.""" data = hass.data[DOMAIN] diff --git a/homeassistant/components/abode/camera.py b/homeassistant/components/abode/camera.py index c6f366e0e51..1742a0a5d6c 100644 --- a/homeassistant/components/abode/camera.py +++ b/homeassistant/components/abode/camera.py @@ -18,11 +18,6 @@ MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=90) _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Platform uses config entry setup.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up Abode camera devices.""" data = hass.data[DOMAIN] diff --git a/homeassistant/components/abode/cover.py b/homeassistant/components/abode/cover.py index a4fce7e7b8a..ec4f54a985c 100644 --- a/homeassistant/components/abode/cover.py +++ b/homeassistant/components/abode/cover.py @@ -11,11 +11,6 @@ from .const import DOMAIN _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Platform uses config entry setup.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up Abode cover devices.""" data = hass.data[DOMAIN] diff --git a/homeassistant/components/abode/light.py b/homeassistant/components/abode/light.py index c02019e6bcc..ad2df23ef9c 100644 --- a/homeassistant/components/abode/light.py +++ b/homeassistant/components/abode/light.py @@ -24,11 +24,6 @@ from .const import DOMAIN _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Platform uses config entry setup.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up Abode light devices.""" data = hass.data[DOMAIN] diff --git a/homeassistant/components/abode/lock.py b/homeassistant/components/abode/lock.py index e7ed40849de..b05a3e7f297 100644 --- a/homeassistant/components/abode/lock.py +++ b/homeassistant/components/abode/lock.py @@ -11,11 +11,6 @@ from .const import DOMAIN _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Platform uses config entry setup.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up Abode lock devices.""" data = hass.data[DOMAIN] diff --git a/homeassistant/components/abode/sensor.py b/homeassistant/components/abode/sensor.py index 573df6d49b4..dc622cb1a38 100644 --- a/homeassistant/components/abode/sensor.py +++ b/homeassistant/components/abode/sensor.py @@ -22,11 +22,6 @@ SENSOR_TYPES = { } -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Platform uses config entry setup.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up Abode sensor devices.""" data = hass.data[DOMAIN] diff --git a/homeassistant/components/abode/switch.py b/homeassistant/components/abode/switch.py index c092c1ef3f0..bbe3f01f488 100644 --- a/homeassistant/components/abode/switch.py +++ b/homeassistant/components/abode/switch.py @@ -12,11 +12,6 @@ from .const import DOMAIN _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Platform uses config entry setup.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up Abode switch devices.""" data = hass.data[DOMAIN] diff --git a/homeassistant/components/ambient_station/binary_sensor.py b/homeassistant/components/ambient_station/binary_sensor.py index 1ed6dbd0db4..e4c1c8ccdac 100644 --- a/homeassistant/components/ambient_station/binary_sensor.py +++ b/homeassistant/components/ambient_station/binary_sensor.py @@ -30,11 +30,6 @@ from .const import ( _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Set up Ambient PWS binary sensors based on the old way.""" - pass - - async def async_setup_entry(hass, entry, async_add_entities): """Set up Ambient PWS binary sensors based on a config entry.""" ambient = hass.data[DOMAIN][DATA_CLIENT][entry.entry_id] diff --git a/homeassistant/components/ambient_station/sensor.py b/homeassistant/components/ambient_station/sensor.py index 0120799d6f2..6dc79cec326 100644 --- a/homeassistant/components/ambient_station/sensor.py +++ b/homeassistant/components/ambient_station/sensor.py @@ -20,11 +20,6 @@ from .const import ( _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Set up Ambient PWS sensors based on existing config.""" - pass - - async def async_setup_entry(hass, entry, async_add_entities): """Set up Ambient PWS sensors based on a config entry.""" ambient = hass.data[DOMAIN][DATA_CLIENT][entry.entry_id] diff --git a/homeassistant/components/ecobee/binary_sensor.py b/homeassistant/components/ecobee/binary_sensor.py index f7a24886b84..a4062905eaa 100644 --- a/homeassistant/components/ecobee/binary_sensor.py +++ b/homeassistant/components/ecobee/binary_sensor.py @@ -7,11 +7,6 @@ from homeassistant.components.binary_sensor import ( from .const import _LOGGER, DOMAIN, ECOBEE_MODEL_TO_NAME, MANUFACTURER -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Old way of setting up ecobee binary sensors.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up ecobee binary (occupancy) sensors.""" data = hass.data[DOMAIN] diff --git a/homeassistant/components/ecobee/climate.py b/homeassistant/components/ecobee/climate.py index 5915e64334f..6746192b840 100644 --- a/homeassistant/components/ecobee/climate.py +++ b/homeassistant/components/ecobee/climate.py @@ -156,11 +156,6 @@ SUPPORT_FLAGS = ( ) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Old way of setting up ecobee thermostat.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up the ecobee thermostat.""" diff --git a/homeassistant/components/ecobee/sensor.py b/homeassistant/components/ecobee/sensor.py index 37201ec2121..c2c34d148e3 100644 --- a/homeassistant/components/ecobee/sensor.py +++ b/homeassistant/components/ecobee/sensor.py @@ -16,11 +16,6 @@ SENSOR_TYPES = { } -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Old way of setting up ecobee sensors.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up ecobee (temperature and humidity) sensors.""" data = hass.data[DOMAIN] diff --git a/homeassistant/components/ecobee/weather.py b/homeassistant/components/ecobee/weather.py index a571e854f73..b8d23b3e379 100644 --- a/homeassistant/components/ecobee/weather.py +++ b/homeassistant/components/ecobee/weather.py @@ -23,11 +23,6 @@ from .const import ( ) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Old way of setting up the ecobee weather platform.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up the ecobee weather platform.""" data = hass.data[DOMAIN] diff --git a/homeassistant/components/glances/sensor.py b/homeassistant/components/glances/sensor.py index 760958f0dee..968081cfc43 100644 --- a/homeassistant/components/glances/sensor.py +++ b/homeassistant/components/glances/sensor.py @@ -11,11 +11,6 @@ from .const import DATA_UPDATED, DOMAIN, SENSOR_TYPES _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Set up the Glances sensors is done through async_setup_entry.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up the Glances sensors.""" diff --git a/homeassistant/components/heos/media_player.py b/homeassistant/components/heos/media_player.py index 9016a8b3cea..39c5a9928af 100644 --- a/homeassistant/components/heos/media_player.py +++ b/homeassistant/components/heos/media_player.py @@ -60,11 +60,6 @@ CONTROL_TO_SUPPORT = { _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Platform uses config entry setup.""" - pass - - async def async_setup_entry( hass: HomeAssistantType, entry: ConfigEntry, async_add_entities ): diff --git a/homeassistant/components/homekit_controller/air_quality.py b/homeassistant/components/homekit_controller/air_quality.py index 854c12e6f88..0419c0354e6 100644 --- a/homeassistant/components/homekit_controller/air_quality.py +++ b/homeassistant/components/homekit_controller/air_quality.py @@ -78,11 +78,6 @@ class HomeAirQualitySensor(HomeKitEntity, AirQualityEntity): return data -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Legacy set up platform.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up Homekit air quality sensor.""" hkid = config_entry.data["AccessoryPairingID"] diff --git a/homeassistant/components/homekit_controller/alarm_control_panel.py b/homeassistant/components/homekit_controller/alarm_control_panel.py index 8cdbe9b2f36..800c988279a 100644 --- a/homeassistant/components/homekit_controller/alarm_control_panel.py +++ b/homeassistant/components/homekit_controller/alarm_control_panel.py @@ -40,11 +40,6 @@ TARGET_STATE_MAP = { } -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Legacy set up platform.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up Homekit alarm control panel.""" hkid = config_entry.data["AccessoryPairingID"] diff --git a/homeassistant/components/homekit_controller/binary_sensor.py b/homeassistant/components/homekit_controller/binary_sensor.py index 2998ce18641..9fd93cf732a 100644 --- a/homeassistant/components/homekit_controller/binary_sensor.py +++ b/homeassistant/components/homekit_controller/binary_sensor.py @@ -93,11 +93,6 @@ ENTITY_TYPES = { } -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Legacy set up platform.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up Homekit lighting.""" hkid = config_entry.data["AccessoryPairingID"] diff --git a/homeassistant/components/homekit_controller/climate.py b/homeassistant/components/homekit_controller/climate.py index d0ab7bd2e99..ff234f566c7 100644 --- a/homeassistant/components/homekit_controller/climate.py +++ b/homeassistant/components/homekit_controller/climate.py @@ -45,11 +45,6 @@ CURRENT_MODE_HOMEKIT_TO_HASS = { } -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Legacy set up platform.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up Homekit climate.""" hkid = config_entry.data["AccessoryPairingID"] diff --git a/homeassistant/components/homekit_controller/cover.py b/homeassistant/components/homekit_controller/cover.py index 7e5591d9505..dec94771b03 100644 --- a/homeassistant/components/homekit_controller/cover.py +++ b/homeassistant/components/homekit_controller/cover.py @@ -36,11 +36,6 @@ TARGET_GARAGE_STATE_MAP = {STATE_OPEN: 0, STATE_CLOSED: 1, STATE_STOPPED: 2} CURRENT_WINDOW_STATE_MAP = {0: STATE_CLOSING, 1: STATE_OPENING, 2: STATE_STOPPED} -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Legacy set up platform.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up Homekit covers.""" hkid = config_entry.data["AccessoryPairingID"] diff --git a/homeassistant/components/homekit_controller/fan.py b/homeassistant/components/homekit_controller/fan.py index efb41808429..a6c4ae769e2 100644 --- a/homeassistant/components/homekit_controller/fan.py +++ b/homeassistant/components/homekit_controller/fan.py @@ -230,11 +230,6 @@ ENTITY_TYPES = { } -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Legacy set up platform.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up Homekit fans.""" hkid = config_entry.data["AccessoryPairingID"] diff --git a/homeassistant/components/homekit_controller/light.py b/homeassistant/components/homekit_controller/light.py index fe2a0e9bc97..9ce262291b3 100644 --- a/homeassistant/components/homekit_controller/light.py +++ b/homeassistant/components/homekit_controller/light.py @@ -18,11 +18,6 @@ from . import KNOWN_DEVICES, HomeKitEntity _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Legacy set up platform.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up Homekit lightbulb.""" hkid = config_entry.data["AccessoryPairingID"] diff --git a/homeassistant/components/homekit_controller/lock.py b/homeassistant/components/homekit_controller/lock.py index 53f7bb5dfd5..5183a636f0f 100644 --- a/homeassistant/components/homekit_controller/lock.py +++ b/homeassistant/components/homekit_controller/lock.py @@ -17,11 +17,6 @@ CURRENT_STATE_MAP = {0: STATE_UNLOCKED, 1: STATE_LOCKED, 2: STATE_JAMMED, 3: Non TARGET_STATE_MAP = {STATE_UNLOCKED: 0, STATE_LOCKED: 1} -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Legacy set up platform.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up Homekit lock.""" hkid = config_entry.data["AccessoryPairingID"] diff --git a/homeassistant/components/homekit_controller/sensor.py b/homeassistant/components/homekit_controller/sensor.py index f91dae26ba0..0e3680db346 100644 --- a/homeassistant/components/homekit_controller/sensor.py +++ b/homeassistant/components/homekit_controller/sensor.py @@ -241,11 +241,6 @@ ENTITY_TYPES = { } -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Legacy set up platform.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up Homekit sensors.""" hkid = config_entry.data["AccessoryPairingID"] diff --git a/homeassistant/components/homekit_controller/switch.py b/homeassistant/components/homekit_controller/switch.py index 7eedda1b191..6b71b15daff 100644 --- a/homeassistant/components/homekit_controller/switch.py +++ b/homeassistant/components/homekit_controller/switch.py @@ -12,11 +12,6 @@ OUTLET_IN_USE = "outlet_in_use" _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Legacy set up platform.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up Homekit lock.""" hkid = config_entry.data["AccessoryPairingID"] diff --git a/homeassistant/components/iqvia/sensor.py b/homeassistant/components/iqvia/sensor.py index 21c31bbff08..09edca52895 100644 --- a/homeassistant/components/iqvia/sensor.py +++ b/homeassistant/components/iqvia/sensor.py @@ -50,11 +50,6 @@ TREND_INCREASING = "Increasing" TREND_SUBSIDING = "Subsiding" -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Set up IQVIA sensors based on the old way.""" - pass - - async def async_setup_entry(hass, entry, async_add_entities): """Set up IQVIA sensors based on a config entry.""" iqvia = hass.data[DOMAIN][DATA_CLIENT][entry.entry_id] diff --git a/homeassistant/components/linky/sensor.py b/homeassistant/components/linky/sensor.py index 4b5f9ab6cad..9beb9acc403 100644 --- a/homeassistant/components/linky/sensor.py +++ b/homeassistant/components/linky/sensor.py @@ -30,11 +30,6 @@ INDEX_LAST = -2 ATTRIBUTION = "Data provided by Enedis" -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Old way of setting up the Linky platform.""" - pass - - async def async_setup_entry( hass: HomeAssistantType, entry: ConfigEntry, async_add_entities ) -> None: diff --git a/homeassistant/components/luftdaten/sensor.py b/homeassistant/components/luftdaten/sensor.py index 29f85c07a5f..6fc48081adc 100644 --- a/homeassistant/components/luftdaten/sensor.py +++ b/homeassistant/components/luftdaten/sensor.py @@ -24,11 +24,6 @@ from .const import ATTR_SENSOR_ID _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Set up an Luftdaten sensor based on existing config.""" - pass - - async def async_setup_entry(hass, entry, async_add_entities): """Set up a Luftdaten sensor based on a config entry.""" luftdaten = hass.data[DOMAIN][DATA_LUFTDATEN_CLIENT][entry.entry_id] diff --git a/homeassistant/components/neato/camera.py b/homeassistant/components/neato/camera.py index f60835b1146..dc6e8d0d8d4 100644 --- a/homeassistant/components/neato/camera.py +++ b/homeassistant/components/neato/camera.py @@ -20,11 +20,6 @@ SCAN_INTERVAL = timedelta(minutes=SCAN_INTERVAL_MINUTES) ATTR_GENERATED_AT = "generated_at" -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Set up the Neato Camera.""" - pass - - async def async_setup_entry(hass, entry, async_add_entities): """Set up Neato camera with config entry.""" dev = [] diff --git a/homeassistant/components/neato/sensor.py b/homeassistant/components/neato/sensor.py index fd5d8036f5f..70d273fe690 100644 --- a/homeassistant/components/neato/sensor.py +++ b/homeassistant/components/neato/sensor.py @@ -16,11 +16,6 @@ SCAN_INTERVAL = timedelta(minutes=SCAN_INTERVAL_MINUTES) BATTERY = "Battery" -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Set up the Neato sensor.""" - pass - - async def async_setup_entry(hass, entry, async_add_entities): """Set up the Neato sensor using config entry.""" dev = [] diff --git a/homeassistant/components/neato/switch.py b/homeassistant/components/neato/switch.py index 6aa0e11a43e..54149630ff2 100644 --- a/homeassistant/components/neato/switch.py +++ b/homeassistant/components/neato/switch.py @@ -18,11 +18,6 @@ SWITCH_TYPE_SCHEDULE = "schedule" SWITCH_TYPES = {SWITCH_TYPE_SCHEDULE: ["Schedule"]} -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Set up the Neato switches.""" - pass - - async def async_setup_entry(hass, entry, async_add_entities): """Set up Neato switch with config entry.""" dev = [] diff --git a/homeassistant/components/neato/vacuum.py b/homeassistant/components/neato/vacuum.py index 92e1539da4f..adff293301b 100644 --- a/homeassistant/components/neato/vacuum.py +++ b/homeassistant/components/neato/vacuum.py @@ -84,11 +84,6 @@ SERVICE_NEATO_CUSTOM_CLEANING_SCHEMA = vol.Schema( ) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Set up the Neato vacuum.""" - pass - - async def async_setup_entry(hass, entry, async_add_entities): """Set up Neato vacuum with config entry.""" dev = [] diff --git a/homeassistant/components/netatmo/binary_sensor.py b/homeassistant/components/netatmo/binary_sensor.py index d420fbb1783..6d0de6dcceb 100644 --- a/homeassistant/components/netatmo/binary_sensor.py +++ b/homeassistant/components/netatmo/binary_sensor.py @@ -76,11 +76,6 @@ async def async_setup_entry(hass, entry, async_add_entities): async_add_entities(await hass.async_add_executor_job(get_entities), True) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Set up the access to Netatmo binary sensor.""" - pass - - class NetatmoBinarySensor(BinarySensorDevice): """Represent a single binary sensor in a Netatmo Camera device.""" diff --git a/homeassistant/components/openuv/binary_sensor.py b/homeassistant/components/openuv/binary_sensor.py index aa489647e25..2790bc7ede0 100644 --- a/homeassistant/components/openuv/binary_sensor.py +++ b/homeassistant/components/openuv/binary_sensor.py @@ -23,11 +23,6 @@ ATTR_PROTECTION_WINDOW_STARTING_TIME = "start_time" ATTR_PROTECTION_WINDOW_STARTING_UV = "start_uv" -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Set up an OpenUV sensor based on existing config.""" - pass - - async def async_setup_entry(hass, entry, async_add_entities): """Set up an OpenUV sensor based on a config entry.""" openuv = hass.data[DOMAIN][DATA_OPENUV_CLIENT][entry.entry_id] diff --git a/homeassistant/components/openuv/sensor.py b/homeassistant/components/openuv/sensor.py index 9b57687d4c2..00954646708 100644 --- a/homeassistant/components/openuv/sensor.py +++ b/homeassistant/components/openuv/sensor.py @@ -44,11 +44,6 @@ UV_LEVEL_MODERATE = "Moderate" UV_LEVEL_LOW = "Low" -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Set up an OpenUV sensor based on existing config.""" - pass - - async def async_setup_entry(hass, entry, async_add_entities): """Set up a Nest sensor based on a config entry.""" openuv = hass.data[DOMAIN][DATA_OPENUV_CLIENT][entry.entry_id] diff --git a/homeassistant/components/ps4/media_player.py b/homeassistant/components/ps4/media_player.py index bea90fa2892..33b5c556c7d 100644 --- a/homeassistant/components/ps4/media_player.py +++ b/homeassistant/components/ps4/media_player.py @@ -69,11 +69,6 @@ async def async_setup_entry(hass, config_entry, async_add_entities): async_add_entities(device_list, update_before_add=True) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Not Implemented.""" - pass - - class PS4Device(MediaPlayerDevice): """Representation of a PS4.""" diff --git a/homeassistant/components/rainmachine/binary_sensor.py b/homeassistant/components/rainmachine/binary_sensor.py index 1fe98482211..2d7ab613554 100644 --- a/homeassistant/components/rainmachine/binary_sensor.py +++ b/homeassistant/components/rainmachine/binary_sensor.py @@ -28,11 +28,6 @@ from . import ( _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Set up RainMachine binary sensors based on the old way.""" - pass - - async def async_setup_entry(hass, entry, async_add_entities): """Set up RainMachine binary sensors based on a config entry.""" rainmachine = hass.data[RAINMACHINE_DOMAIN][DATA_CLIENT][entry.entry_id] diff --git a/homeassistant/components/rainmachine/sensor.py b/homeassistant/components/rainmachine/sensor.py index 399e86b7db1..bc1c734b98e 100644 --- a/homeassistant/components/rainmachine/sensor.py +++ b/homeassistant/components/rainmachine/sensor.py @@ -22,11 +22,6 @@ from . import ( _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Set up RainMachine sensors based on the old way.""" - pass - - async def async_setup_entry(hass, entry, async_add_entities): """Set up RainMachine sensors based on a config entry.""" rainmachine = hass.data[RAINMACHINE_DOMAIN][DATA_CLIENT][entry.entry_id] diff --git a/homeassistant/components/rainmachine/switch.py b/homeassistant/components/rainmachine/switch.py index 36c5eefb3d6..8da2cc4ee45 100644 --- a/homeassistant/components/rainmachine/switch.py +++ b/homeassistant/components/rainmachine/switch.py @@ -95,11 +95,6 @@ VEGETATION_MAP = { } -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Set up RainMachine switches sensor based on the old way.""" - pass - - async def async_setup_entry(hass, entry, async_add_entities): """Set up RainMachine switches based on a config entry.""" rainmachine = hass.data[RAINMACHINE_DOMAIN][DATA_CLIENT][entry.entry_id] diff --git a/homeassistant/components/simplisafe/alarm_control_panel.py b/homeassistant/components/simplisafe/alarm_control_panel.py index 2cb6c4b41c5..37aa2d84585 100644 --- a/homeassistant/components/simplisafe/alarm_control_panel.py +++ b/homeassistant/components/simplisafe/alarm_control_panel.py @@ -57,11 +57,6 @@ VOLUME_STRING_MAP = { } -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Set up a SimpliSafe alarm control panel based on existing config.""" - pass - - async def async_setup_entry(hass, entry, async_add_entities): """Set up a SimpliSafe alarm control panel based on a config entry.""" simplisafe = hass.data[DOMAIN][DATA_CLIENT][entry.entry_id] diff --git a/homeassistant/components/smartthings/binary_sensor.py b/homeassistant/components/smartthings/binary_sensor.py index 1e90709fc82..78d2c73ca73 100644 --- a/homeassistant/components/smartthings/binary_sensor.py +++ b/homeassistant/components/smartthings/binary_sensor.py @@ -32,11 +32,6 @@ ATTRIB_TO_CLASS = { } -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Platform uses config entry setup.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Add binary sensors for a config entry.""" broker = hass.data[DOMAIN][DATA_BROKERS][config_entry.entry_id] diff --git a/homeassistant/components/smartthings/climate.py b/homeassistant/components/smartthings/climate.py index 4f005a326cd..19a9e20cd6b 100644 --- a/homeassistant/components/smartthings/climate.py +++ b/homeassistant/components/smartthings/climate.py @@ -80,11 +80,6 @@ UNIT_MAP = {"C": TEMP_CELSIUS, "F": TEMP_FAHRENHEIT} _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Platform uses config entry setup.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Add climate entities for a config entry.""" ac_capabilities = [ diff --git a/homeassistant/components/smartthings/cover.py b/homeassistant/components/smartthings/cover.py index 2d6eb2234f5..a41d9d6b9f7 100644 --- a/homeassistant/components/smartthings/cover.py +++ b/homeassistant/components/smartthings/cover.py @@ -33,11 +33,6 @@ VALUE_TO_STATE = { } -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Platform uses config entry setup.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Add covers for a config entry.""" broker = hass.data[DOMAIN][DATA_BROKERS][config_entry.entry_id] diff --git a/homeassistant/components/smartthings/fan.py b/homeassistant/components/smartthings/fan.py index 80d0e72fd96..aad62aed486 100644 --- a/homeassistant/components/smartthings/fan.py +++ b/homeassistant/components/smartthings/fan.py @@ -19,11 +19,6 @@ VALUE_TO_SPEED = {0: SPEED_OFF, 1: SPEED_LOW, 2: SPEED_MEDIUM, 3: SPEED_HIGH} SPEED_TO_VALUE = {v: k for k, v in VALUE_TO_SPEED.items()} -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Platform uses config entry setup.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Add fans for a config entry.""" broker = hass.data[DOMAIN][DATA_BROKERS][config_entry.entry_id] diff --git a/homeassistant/components/smartthings/light.py b/homeassistant/components/smartthings/light.py index 4bc3f487790..7978d85505d 100644 --- a/homeassistant/components/smartthings/light.py +++ b/homeassistant/components/smartthings/light.py @@ -21,11 +21,6 @@ from . import SmartThingsEntity from .const import DATA_BROKERS, DOMAIN -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Platform uses config entry setup.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Add lights for a config entry.""" broker = hass.data[DOMAIN][DATA_BROKERS][config_entry.entry_id] diff --git a/homeassistant/components/smartthings/lock.py b/homeassistant/components/smartthings/lock.py index 7529f95fc34..2895bde0bf7 100644 --- a/homeassistant/components/smartthings/lock.py +++ b/homeassistant/components/smartthings/lock.py @@ -19,11 +19,6 @@ ST_LOCK_ATTR_MAP = { } -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Platform uses config entry setup.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Add locks for a config entry.""" broker = hass.data[DOMAIN][DATA_BROKERS][config_entry.entry_id] diff --git a/homeassistant/components/smartthings/scene.py b/homeassistant/components/smartthings/scene.py index 4ecd66b1d78..a92f2f99ea3 100644 --- a/homeassistant/components/smartthings/scene.py +++ b/homeassistant/components/smartthings/scene.py @@ -4,11 +4,6 @@ from homeassistant.components.scene import Scene from .const import DATA_BROKERS, DOMAIN -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Platform uses config entry setup.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Add switches for a config entry.""" broker = hass.data[DOMAIN][DATA_BROKERS][config_entry.entry_id] diff --git a/homeassistant/components/smartthings/sensor.py b/homeassistant/components/smartthings/sensor.py index 3a6f9167054..38e32e90b85 100644 --- a/homeassistant/components/smartthings/sensor.py +++ b/homeassistant/components/smartthings/sensor.py @@ -229,11 +229,6 @@ UNITS = {"C": TEMP_CELSIUS, "F": TEMP_FAHRENHEIT} THREE_AXIS_NAMES = ["X Coordinate", "Y Coordinate", "Z Coordinate"] -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Platform uses config entry setup.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Add binary sensors for a config entry.""" broker = hass.data[DOMAIN][DATA_BROKERS][config_entry.entry_id] diff --git a/homeassistant/components/smartthings/switch.py b/homeassistant/components/smartthings/switch.py index 4d258269748..ace47a56d2c 100644 --- a/homeassistant/components/smartthings/switch.py +++ b/homeassistant/components/smartthings/switch.py @@ -9,11 +9,6 @@ from . import SmartThingsEntity from .const import DATA_BROKERS, DOMAIN -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Platform uses config entry setup.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Add switches for a config entry.""" broker = hass.data[DOMAIN][DATA_BROKERS][config_entry.entry_id] diff --git a/homeassistant/components/solaredge/sensor.py b/homeassistant/components/solaredge/sensor.py index 60cabaf38f0..f2464489627 100644 --- a/homeassistant/components/solaredge/sensor.py +++ b/homeassistant/components/solaredge/sensor.py @@ -21,11 +21,6 @@ from .const import ( _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Old configuration.""" - pass - - async def async_setup_entry(hass, entry, async_add_entities): """Add an solarEdge entry.""" # Add the needed sensors to hass diff --git a/homeassistant/components/tesla/binary_sensor.py b/homeassistant/components/tesla/binary_sensor.py index 8f610d960b3..3664cf6252d 100644 --- a/homeassistant/components/tesla/binary_sensor.py +++ b/homeassistant/components/tesla/binary_sensor.py @@ -8,11 +8,6 @@ from . import DOMAIN as TESLA_DOMAIN, TeslaDevice _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Set up the Tesla binary sensor.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up the Tesla binary_sensors by config_entry.""" async_add_entities( diff --git a/homeassistant/components/tesla/climate.py b/homeassistant/components/tesla/climate.py index d7f21d7895f..d438f94f4c3 100644 --- a/homeassistant/components/tesla/climate.py +++ b/homeassistant/components/tesla/climate.py @@ -16,11 +16,6 @@ _LOGGER = logging.getLogger(__name__) SUPPORT_HVAC = [HVAC_MODE_HEAT_COOL, HVAC_MODE_OFF] -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Set up the Tesla climate platform.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up the Tesla binary_sensors by config_entry.""" async_add_entities( diff --git a/homeassistant/components/tesla/lock.py b/homeassistant/components/tesla/lock.py index 33eed8cf7c1..7dffff5a5e0 100644 --- a/homeassistant/components/tesla/lock.py +++ b/homeassistant/components/tesla/lock.py @@ -9,11 +9,6 @@ from . import DOMAIN as TESLA_DOMAIN, TeslaDevice _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Set up the Tesla lock platform.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up the Tesla binary_sensors by config_entry.""" entities = [ diff --git a/homeassistant/components/tesla/sensor.py b/homeassistant/components/tesla/sensor.py index a282f65f9e1..363cdc742d3 100644 --- a/homeassistant/components/tesla/sensor.py +++ b/homeassistant/components/tesla/sensor.py @@ -15,11 +15,6 @@ from . import DOMAIN as TESLA_DOMAIN, TeslaDevice _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Set up the Tesla sensor platform.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up the Tesla binary_sensors by config_entry.""" controller = hass.data[TESLA_DOMAIN][config_entry.entry_id]["controller"] diff --git a/homeassistant/components/tesla/switch.py b/homeassistant/components/tesla/switch.py index fc9b5e1ba88..331f6bd8126 100644 --- a/homeassistant/components/tesla/switch.py +++ b/homeassistant/components/tesla/switch.py @@ -9,11 +9,6 @@ from . import DOMAIN as TESLA_DOMAIN, TeslaDevice _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Set up the Tesla switch platform.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up the Tesla binary_sensors by config_entry.""" controller = hass.data[TESLA_DOMAIN][config_entry.entry_id]["controller"] diff --git a/homeassistant/components/transmission/sensor.py b/homeassistant/components/transmission/sensor.py index 6bedc793ed9..0db731d6f01 100644 --- a/homeassistant/components/transmission/sensor.py +++ b/homeassistant/components/transmission/sensor.py @@ -11,11 +11,6 @@ from .const import DOMAIN, SENSOR_TYPES, STATE_ATTR_TORRENT_INFO _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Import config from configuration.yaml.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up the Transmission sensors.""" diff --git a/homeassistant/components/transmission/switch.py b/homeassistant/components/transmission/switch.py index adf94c64fd6..1756df7baee 100644 --- a/homeassistant/components/transmission/switch.py +++ b/homeassistant/components/transmission/switch.py @@ -11,11 +11,6 @@ from .const import DOMAIN, SWITCH_TYPES _LOGGING = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Import config from configuration.yaml.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up the Transmission switch.""" diff --git a/homeassistant/components/velbus/binary_sensor.py b/homeassistant/components/velbus/binary_sensor.py index 505303ded24..86f4e7a7cd8 100644 --- a/homeassistant/components/velbus/binary_sensor.py +++ b/homeassistant/components/velbus/binary_sensor.py @@ -9,11 +9,6 @@ from .const import DOMAIN _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Old way.""" - pass - - async def async_setup_entry(hass, entry, async_add_entities): """Set up Velbus binary sensor based on config_entry.""" cntrl = hass.data[DOMAIN][entry.entry_id]["cntrl"] diff --git a/homeassistant/components/velbus/climate.py b/homeassistant/components/velbus/climate.py index 812e4605d95..e322cfb77c7 100644 --- a/homeassistant/components/velbus/climate.py +++ b/homeassistant/components/velbus/climate.py @@ -16,11 +16,6 @@ from .const import DOMAIN _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Set up Velbus binary sensors.""" - pass - - async def async_setup_entry(hass, entry, async_add_entities): """Set up Velbus binary sensor based on config_entry.""" cntrl = hass.data[DOMAIN][entry.entry_id]["cntrl"] diff --git a/homeassistant/components/velbus/cover.py b/homeassistant/components/velbus/cover.py index aea02331ead..3e7df39b333 100644 --- a/homeassistant/components/velbus/cover.py +++ b/homeassistant/components/velbus/cover.py @@ -16,11 +16,6 @@ from .const import DOMAIN _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Set up Velbus covers.""" - pass - - async def async_setup_entry(hass, entry, async_add_entities): """Set up Velbus cover based on config_entry.""" cntrl = hass.data[DOMAIN][entry.entry_id]["cntrl"] diff --git a/homeassistant/components/velbus/light.py b/homeassistant/components/velbus/light.py index 7db79e74d5b..d428b766edc 100644 --- a/homeassistant/components/velbus/light.py +++ b/homeassistant/components/velbus/light.py @@ -21,11 +21,6 @@ from .const import DOMAIN _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Old way.""" - pass - - async def async_setup_entry(hass, entry, async_add_entities): """Set up Velbus light based on config_entry.""" cntrl = hass.data[DOMAIN][entry.entry_id]["cntrl"] diff --git a/homeassistant/components/velbus/sensor.py b/homeassistant/components/velbus/sensor.py index 8af5df9e165..7ebdda2d781 100644 --- a/homeassistant/components/velbus/sensor.py +++ b/homeassistant/components/velbus/sensor.py @@ -7,11 +7,6 @@ from .const import DOMAIN _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Old way.""" - pass - - async def async_setup_entry(hass, entry, async_add_entities): """Set up Velbus sensor based on config_entry.""" cntrl = hass.data[DOMAIN][entry.entry_id]["cntrl"] diff --git a/homeassistant/components/velbus/switch.py b/homeassistant/components/velbus/switch.py index ead83f7d3cf..64d4b7c17f8 100644 --- a/homeassistant/components/velbus/switch.py +++ b/homeassistant/components/velbus/switch.py @@ -11,11 +11,6 @@ from .const import DOMAIN _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Old way.""" - pass - - async def async_setup_entry(hass, entry, async_add_entities): """Set up Velbus switch based on config_entry.""" cntrl = hass.data[DOMAIN][entry.entry_id]["cntrl"] diff --git a/homeassistant/components/zha/binary_sensor.py b/homeassistant/components/zha/binary_sensor.py index d8bc1187be8..d25410a0667 100644 --- a/homeassistant/components/zha/binary_sensor.py +++ b/homeassistant/components/zha/binary_sensor.py @@ -46,11 +46,6 @@ CLASS_MAPPING = { STRICT_MATCH = functools.partial(ZHA_ENTITIES.strict_match, DOMAIN) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Old way of setting up Zigbee Home Automation binary sensors.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up the Zigbee Home Automation binary sensor from config entry.""" diff --git a/homeassistant/components/zha/cover.py b/homeassistant/components/zha/cover.py index ef410308eb1..5b83b8cefcb 100644 --- a/homeassistant/components/zha/cover.py +++ b/homeassistant/components/zha/cover.py @@ -26,11 +26,6 @@ SCAN_INTERVAL = timedelta(minutes=60) STRICT_MATCH = functools.partial(ZHA_ENTITIES.strict_match, DOMAIN) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Old way of setting up Zigbee Home Automation covers.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up the Zigbee Home Automation cover from config entry.""" diff --git a/homeassistant/components/zha/fan.py b/homeassistant/components/zha/fan.py index f489447e530..50e9f63a067 100644 --- a/homeassistant/components/zha/fan.py +++ b/homeassistant/components/zha/fan.py @@ -50,11 +50,6 @@ SPEED_TO_VALUE = {speed: i for i, speed in enumerate(SPEED_LIST)} STRICT_MATCH = functools.partial(ZHA_ENTITIES.strict_match, DOMAIN) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Old way of setting up Zigbee Home Automation fans.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up the Zigbee Home Automation fan from config entry.""" diff --git a/homeassistant/components/zha/light.py b/homeassistant/components/zha/light.py index eb7d3297b43..11fa87d4618 100644 --- a/homeassistant/components/zha/light.py +++ b/homeassistant/components/zha/light.py @@ -42,11 +42,6 @@ STRICT_MATCH = functools.partial(ZHA_ENTITIES.strict_match, light.DOMAIN) PARALLEL_UPDATES = 5 -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Old way of setting up Zigbee Home Automation lights.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up the Zigbee Home Automation light from config entry.""" diff --git a/homeassistant/components/zha/lock.py b/homeassistant/components/zha/lock.py index bf82252246c..584df99fe08 100644 --- a/homeassistant/components/zha/lock.py +++ b/homeassistant/components/zha/lock.py @@ -33,11 +33,6 @@ STRICT_MATCH = functools.partial(ZHA_ENTITIES.strict_match, DOMAIN) VALUE_TO_STATE = dict(enumerate(STATE_LIST)) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Old way of setting up Zigbee Home Automation locks.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up the Zigbee Home Automation Door Lock from config entry.""" diff --git a/homeassistant/components/zha/sensor.py b/homeassistant/components/zha/sensor.py index bb764ab406d..52d4660a467 100644 --- a/homeassistant/components/zha/sensor.py +++ b/homeassistant/components/zha/sensor.py @@ -63,11 +63,6 @@ CHANNEL_ST_HUMIDITY_CLUSTER = f"channel_0x{SMARTTHINGS_HUMIDITY_CLUSTER:04x}" STRICT_MATCH = functools.partial(ZHA_ENTITIES.strict_match, DOMAIN) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Old way of setting up Zigbee Home Automation sensors.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up the Zigbee Home Automation sensor from config entry.""" diff --git a/homeassistant/components/zha/switch.py b/homeassistant/components/zha/switch.py index cbd29925f62..a68fca76af4 100644 --- a/homeassistant/components/zha/switch.py +++ b/homeassistant/components/zha/switch.py @@ -23,11 +23,6 @@ _LOGGER = logging.getLogger(__name__) STRICT_MATCH = functools.partial(ZHA_ENTITIES.strict_match, DOMAIN) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Old way of setting up Zigbee Home Automation switches.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up the Zigbee Home Automation switch from config entry.""" diff --git a/homeassistant/components/zwave/binary_sensor.py b/homeassistant/components/zwave/binary_sensor.py index 68df3313de3..e4bafc44bee 100644 --- a/homeassistant/components/zwave/binary_sensor.py +++ b/homeassistant/components/zwave/binary_sensor.py @@ -14,11 +14,6 @@ from .const import COMMAND_CLASS_SENSOR_BINARY _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Old method of setting up Z-Wave binary sensors.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up Z-Wave binary sensors from Config Entry.""" diff --git a/homeassistant/components/zwave/climate.py b/homeassistant/components/zwave/climate.py index 2b421db70b5..840418fb063 100644 --- a/homeassistant/components/zwave/climate.py +++ b/homeassistant/components/zwave/climate.py @@ -128,11 +128,6 @@ DEFAULT_HVAC_MODES = [ ] -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Old method of setting up Z-Wave climate devices.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up Z-Wave Climate device from Config Entry.""" diff --git a/homeassistant/components/zwave/cover.py b/homeassistant/components/zwave/cover.py index 95cc994e4ff..e6aa8028849 100644 --- a/homeassistant/components/zwave/cover.py +++ b/homeassistant/components/zwave/cover.py @@ -29,11 +29,6 @@ _LOGGER = logging.getLogger(__name__) SUPPORT_GARAGE = SUPPORT_OPEN | SUPPORT_CLOSE -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Old method of setting up Z-Wave covers.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up Z-Wave Cover from Config Entry.""" diff --git a/homeassistant/components/zwave/fan.py b/homeassistant/components/zwave/fan.py index b77ab8dcf68..a2dbc3a4eab 100644 --- a/homeassistant/components/zwave/fan.py +++ b/homeassistant/components/zwave/fan.py @@ -28,11 +28,6 @@ VALUE_TO_SPEED = {0: SPEED_OFF, 1: SPEED_LOW, 2: SPEED_MEDIUM, 3: SPEED_HIGH} SPEED_TO_VALUE = {SPEED_OFF: 0, SPEED_LOW: 1, SPEED_MEDIUM: 50, SPEED_HIGH: 99} -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Old method of setting up Z-Wave fans.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up Z-Wave Fan from Config Entry.""" diff --git a/homeassistant/components/zwave/light.py b/homeassistant/components/zwave/light.py index e941b2a97dc..9c582eba89a 100644 --- a/homeassistant/components/zwave/light.py +++ b/homeassistant/components/zwave/light.py @@ -61,11 +61,6 @@ TEMP_WARM_HASS = (TEMP_COLOR_MAX - TEMP_COLOR_MIN) / 3 * 2 + TEMP_COLOR_MIN TEMP_COLD_HASS = (TEMP_COLOR_MAX - TEMP_COLOR_MIN) / 3 + TEMP_COLOR_MIN -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Old method of setting up Z-Wave lights.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up Z-Wave Light from Config Entry.""" diff --git a/homeassistant/components/zwave/lock.py b/homeassistant/components/zwave/lock.py index f84b1b5cfd4..44e73da320f 100644 --- a/homeassistant/components/zwave/lock.py +++ b/homeassistant/components/zwave/lock.py @@ -153,11 +153,6 @@ CLEAR_USERCODE_SCHEMA = vol.Schema( ) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Old method of setting up Z-Wave locks.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up Z-Wave Lock from Config Entry.""" diff --git a/homeassistant/components/zwave/sensor.py b/homeassistant/components/zwave/sensor.py index 08ee54415ad..b732e3569ed 100644 --- a/homeassistant/components/zwave/sensor.py +++ b/homeassistant/components/zwave/sensor.py @@ -11,11 +11,6 @@ from . import ZWaveDeviceEntity, const _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Old method of setting up Z-Wave sensors.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up Z-Wave Sensor from Config Entry.""" diff --git a/homeassistant/components/zwave/switch.py b/homeassistant/components/zwave/switch.py index 3592f534074..4956e99a40e 100644 --- a/homeassistant/components/zwave/switch.py +++ b/homeassistant/components/zwave/switch.py @@ -11,11 +11,6 @@ from . import ZWaveDeviceEntity, workaround _LOGGER = logging.getLogger(__name__) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Old method of setting up Z-Wave switches.""" - pass - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up Z-Wave Switch from Config Entry.""" diff --git a/tests/components/heos/test_media_player.py b/tests/components/heos/test_media_player.py index 0f9bf2d8b3e..354751be0d2 100644 --- a/tests/components/heos/test_media_player.py +++ b/tests/components/heos/test_media_player.py @@ -63,11 +63,6 @@ async def setup_platform(hass, config_entry, config): await hass.async_block_till_done() -async def test_async_setup_platform(): - """Test setup platform does nothing (it uses config entries).""" - await media_player.async_setup_platform(None, None, None) - - async def test_state_attributes(hass, config_entry, config, controller): """Tests the state attributes.""" await setup_platform(hass, config_entry, config) diff --git a/tests/components/smartthings/test_binary_sensor.py b/tests/components/smartthings/test_binary_sensor.py index 58a519cae51..300e2ac4b46 100644 --- a/tests/components/smartthings/test_binary_sensor.py +++ b/tests/components/smartthings/test_binary_sensor.py @@ -32,11 +32,6 @@ async def test_mapping_integrity(): assert device_class in DEVICE_CLASSES, device_class -async def test_async_setup_platform(): - """Test setup platform does nothing (it uses config entries).""" - await binary_sensor.async_setup_platform(None, None, None) - - async def test_entity_state(hass, device_factory): """Tests the state attributes properly match the light types.""" device = device_factory( diff --git a/tests/components/smartthings/test_climate.py b/tests/components/smartthings/test_climate.py index 79919a376cd..4229bd7cf94 100644 --- a/tests/components/smartthings/test_climate.py +++ b/tests/components/smartthings/test_climate.py @@ -198,11 +198,6 @@ def air_conditioner_fixture(device_factory): return device -async def test_async_setup_platform(): - """Test setup platform does nothing (it uses config entries).""" - await climate.async_setup_platform(None, None, None) - - async def test_legacy_thermostat_entity_state(hass, legacy_thermostat): """Tests the state attributes properly match the thermostat type.""" await setup_platform(hass, CLIMATE_DOMAIN, devices=[legacy_thermostat]) diff --git a/tests/components/smartthings/test_cover.py b/tests/components/smartthings/test_cover.py index 26b68c0cb1f..9c5a80e27fb 100644 --- a/tests/components/smartthings/test_cover.py +++ b/tests/components/smartthings/test_cover.py @@ -18,7 +18,6 @@ from homeassistant.components.cover import ( STATE_OPEN, STATE_OPENING, ) -from homeassistant.components.smartthings import cover from homeassistant.components.smartthings.const import DOMAIN, SIGNAL_SMARTTHINGS_UPDATE from homeassistant.const import ATTR_BATTERY_LEVEL, ATTR_ENTITY_ID from homeassistant.helpers.dispatcher import async_dispatcher_send @@ -26,11 +25,6 @@ from homeassistant.helpers.dispatcher import async_dispatcher_send from .conftest import setup_platform -async def test_async_setup_platform(): - """Test setup platform does nothing (it uses config entries).""" - await cover.async_setup_platform(None, None, None) - - async def test_entity_and_device_attributes(hass, device_factory): """Test the attributes of the entity are correct.""" # Arrange diff --git a/tests/components/smartthings/test_fan.py b/tests/components/smartthings/test_fan.py index af557ae83b1..6b8eb56d65c 100644 --- a/tests/components/smartthings/test_fan.py +++ b/tests/components/smartthings/test_fan.py @@ -16,7 +16,6 @@ from homeassistant.components.fan import ( SPEED_OFF, SUPPORT_SET_SPEED, ) -from homeassistant.components.smartthings import fan from homeassistant.components.smartthings.const import DOMAIN, SIGNAL_SMARTTHINGS_UPDATE from homeassistant.const import ATTR_ENTITY_ID, ATTR_SUPPORTED_FEATURES from homeassistant.helpers.dispatcher import async_dispatcher_send @@ -24,11 +23,6 @@ from homeassistant.helpers.dispatcher import async_dispatcher_send from .conftest import setup_platform -async def test_async_setup_platform(): - """Test setup platform does nothing (it uses config entries).""" - await fan.async_setup_platform(None, None, None) - - async def test_entity_state(hass, device_factory): """Tests the state attributes properly match the fan types.""" device = device_factory( diff --git a/tests/components/smartthings/test_light.py b/tests/components/smartthings/test_light.py index 5f56138bb76..43a73113fec 100644 --- a/tests/components/smartthings/test_light.py +++ b/tests/components/smartthings/test_light.py @@ -18,7 +18,6 @@ from homeassistant.components.light import ( SUPPORT_COLOR_TEMP, SUPPORT_TRANSITION, ) -from homeassistant.components.smartthings import light from homeassistant.components.smartthings.const import DOMAIN, SIGNAL_SMARTTHINGS_UPDATE from homeassistant.const import ATTR_ENTITY_ID, ATTR_SUPPORTED_FEATURES from homeassistant.helpers.dispatcher import async_dispatcher_send @@ -68,11 +67,6 @@ def light_devices_fixture(device_factory): ] -async def test_async_setup_platform(): - """Test setup platform does nothing (it uses config entries).""" - await light.async_setup_platform(None, None, None) - - async def test_entity_state(hass, light_devices): """Tests the state attributes properly match the light types.""" await setup_platform(hass, LIGHT_DOMAIN, devices=light_devices) diff --git a/tests/components/smartthings/test_lock.py b/tests/components/smartthings/test_lock.py index f76e42cdd46..65219852392 100644 --- a/tests/components/smartthings/test_lock.py +++ b/tests/components/smartthings/test_lock.py @@ -8,18 +8,12 @@ from pysmartthings import Attribute, Capability from pysmartthings.device import Status from homeassistant.components.lock import DOMAIN as LOCK_DOMAIN -from homeassistant.components.smartthings import lock from homeassistant.components.smartthings.const import DOMAIN, SIGNAL_SMARTTHINGS_UPDATE from homeassistant.helpers.dispatcher import async_dispatcher_send from .conftest import setup_platform -async def test_async_setup_platform(): - """Test setup platform does nothing (it uses config entries).""" - await lock.async_setup_platform(None, None, None) - - async def test_entity_and_device_attributes(hass, device_factory): """Test the attributes of the entity are correct.""" # Arrange diff --git a/tests/components/smartthings/test_scene.py b/tests/components/smartthings/test_scene.py index 9d86520b5ab..a9e6443d2bf 100644 --- a/tests/components/smartthings/test_scene.py +++ b/tests/components/smartthings/test_scene.py @@ -5,17 +5,11 @@ The only mocking required is of the underlying SmartThings API object so real HTTP calls are not initiated during testing. """ from homeassistant.components.scene import DOMAIN as SCENE_DOMAIN -from homeassistant.components.smartthings import scene as scene_platform from homeassistant.const import ATTR_ENTITY_ID, SERVICE_TURN_ON from .conftest import setup_platform -async def test_async_setup_platform(): - """Test setup platform does nothing (it uses config entries).""" - await scene_platform.async_setup_platform(None, None, None) - - async def test_entity_and_device_attributes(hass, scene): """Test the attributes of the entity are correct.""" # Arrange diff --git a/tests/components/smartthings/test_sensor.py b/tests/components/smartthings/test_sensor.py index f70c5bac57d..f285bc65d8d 100644 --- a/tests/components/smartthings/test_sensor.py +++ b/tests/components/smartthings/test_sensor.py @@ -31,11 +31,6 @@ async def test_mapping_integrity(): ), sensor_map.device_class -async def test_async_setup_platform(): - """Test setup platform does nothing (it uses config entries).""" - await sensor.async_setup_platform(None, None, None) - - async def test_entity_state(hass, device_factory): """Tests the state attributes properly match the sensor types.""" device = device_factory("Sensor 1", [Capability.battery], {Attribute.battery: 100}) diff --git a/tests/components/smartthings/test_switch.py b/tests/components/smartthings/test_switch.py index 1c65550eb26..0b47739caf5 100644 --- a/tests/components/smartthings/test_switch.py +++ b/tests/components/smartthings/test_switch.py @@ -6,7 +6,6 @@ real HTTP calls are not initiated during testing. """ from pysmartthings import Attribute, Capability -from homeassistant.components.smartthings import switch from homeassistant.components.smartthings.const import DOMAIN, SIGNAL_SMARTTHINGS_UPDATE from homeassistant.components.switch import ( ATTR_CURRENT_POWER_W, @@ -18,11 +17,6 @@ from homeassistant.helpers.dispatcher import async_dispatcher_send from .conftest import setup_platform -async def test_async_setup_platform(): - """Test setup platform does nothing (it uses config entries).""" - await switch.async_setup_platform(None, None, None) - - async def test_entity_and_device_attributes(hass, device_factory): """Test the attributes of the entity are correct.""" # Arrange