From 1effd605a566fcb0fbf0c4e9aaba89a0a1a4f142 Mon Sep 17 00:00:00 2001 From: SukramJ Date: Fri, 24 Jan 2020 17:33:23 +0100 Subject: [PATCH] Remove unused async_setup_platform (#31132) --- .../components/homematicip_cloud/alarm_control_panel.py | 7 ------- .../components/homematicip_cloud/binary_sensor.py | 7 ------- homeassistant/components/homematicip_cloud/climate.py | 7 ------- homeassistant/components/homematicip_cloud/cover.py | 7 ------- homeassistant/components/homematicip_cloud/light.py | 7 ------- homeassistant/components/homematicip_cloud/sensor.py | 7 ------- homeassistant/components/homematicip_cloud/switch.py | 7 ------- homeassistant/components/homematicip_cloud/weather.py | 7 ------- 8 files changed, 56 deletions(-) diff --git a/homeassistant/components/homematicip_cloud/alarm_control_panel.py b/homeassistant/components/homematicip_cloud/alarm_control_panel.py index f9a91203426..dea84b90bd6 100644 --- a/homeassistant/components/homematicip_cloud/alarm_control_panel.py +++ b/homeassistant/components/homematicip_cloud/alarm_control_panel.py @@ -26,13 +26,6 @@ _LOGGER = logging.getLogger(__name__) CONST_ALARM_CONTROL_PANEL_NAME = "HmIP Alarm Control Panel" -async def async_setup_platform( - hass, config, async_add_entities, discovery_info=None -) -> None: - """Set up the HomematicIP Cloud alarm control devices.""" - pass - - async def async_setup_entry( hass: HomeAssistantType, config_entry: ConfigEntry, async_add_entities ) -> None: diff --git a/homeassistant/components/homematicip_cloud/binary_sensor.py b/homeassistant/components/homematicip_cloud/binary_sensor.py index 3efd4ad91bc..5a679626679 100644 --- a/homeassistant/components/homematicip_cloud/binary_sensor.py +++ b/homeassistant/components/homematicip_cloud/binary_sensor.py @@ -75,13 +75,6 @@ SAM_DEVICE_ATTRIBUTES = { } -async def async_setup_platform( - hass, config, async_add_entities, discovery_info=None -) -> None: - """Set up the HomematicIP Cloud binary sensor devices.""" - pass - - async def async_setup_entry( hass: HomeAssistantType, config_entry: ConfigEntry, async_add_entities ) -> None: diff --git a/homeassistant/components/homematicip_cloud/climate.py b/homeassistant/components/homematicip_cloud/climate.py index e3c922dc577..d932d5c3f0a 100644 --- a/homeassistant/components/homematicip_cloud/climate.py +++ b/homeassistant/components/homematicip_cloud/climate.py @@ -43,13 +43,6 @@ HMIP_MANUAL_CM = "MANUAL" HMIP_ECO_CM = "ECO" -async def async_setup_platform( - hass, config, async_add_entities, discovery_info=None -) -> None: - """Set up the HomematicIP Cloud climate devices.""" - pass - - async def async_setup_entry( hass: HomeAssistantType, config_entry: ConfigEntry, async_add_entities ) -> None: diff --git a/homeassistant/components/homematicip_cloud/cover.py b/homeassistant/components/homematicip_cloud/cover.py index 32f38637e36..2e6d8b546bc 100644 --- a/homeassistant/components/homematicip_cloud/cover.py +++ b/homeassistant/components/homematicip_cloud/cover.py @@ -27,13 +27,6 @@ HMIP_SLATS_OPEN = 0 HMIP_SLATS_CLOSED = 1 -async def async_setup_platform( - hass, config, async_add_entities, discovery_info=None -) -> None: - """Set up the HomematicIP Cloud cover devices.""" - pass - - async def async_setup_entry( hass: HomeAssistantType, config_entry: ConfigEntry, async_add_entities ) -> None: diff --git a/homeassistant/components/homematicip_cloud/light.py b/homeassistant/components/homematicip_cloud/light.py index 79083f031ae..f35118d0d84 100644 --- a/homeassistant/components/homematicip_cloud/light.py +++ b/homeassistant/components/homematicip_cloud/light.py @@ -34,13 +34,6 @@ ATTR_TODAY_ENERGY_KWH = "today_energy_kwh" ATTR_CURRENT_POWER_W = "current_power_w" -async def async_setup_platform( - hass, config, async_add_entities, discovery_info=None -) -> None: - """Old way of setting up HomematicIP Cloud lights.""" - pass - - async def async_setup_entry( hass: HomeAssistantType, config_entry: ConfigEntry, async_add_entities ) -> None: diff --git a/homeassistant/components/homematicip_cloud/sensor.py b/homeassistant/components/homematicip_cloud/sensor.py index a8ca3d17eb9..50a1c4ae34a 100644 --- a/homeassistant/components/homematicip_cloud/sensor.py +++ b/homeassistant/components/homematicip_cloud/sensor.py @@ -56,13 +56,6 @@ ILLUMINATION_DEVICE_ATTRIBUTES = { } -async def async_setup_platform( - hass, config, async_add_entities, discovery_info=None -) -> None: - """Set up the HomematicIP Cloud sensors devices.""" - pass - - async def async_setup_entry( hass: HomeAssistantType, config_entry: ConfigEntry, async_add_entities ) -> None: diff --git a/homeassistant/components/homematicip_cloud/switch.py b/homeassistant/components/homematicip_cloud/switch.py index 6fdb0b8c95c..bce85592891 100644 --- a/homeassistant/components/homematicip_cloud/switch.py +++ b/homeassistant/components/homematicip_cloud/switch.py @@ -26,13 +26,6 @@ from .hap import HomematicipHAP _LOGGER = logging.getLogger(__name__) -async def async_setup_platform( - hass, config, async_add_entities, discovery_info=None -) -> None: - """Set up the HomematicIP Cloud switch devices.""" - pass - - async def async_setup_entry( hass: HomeAssistantType, config_entry: ConfigEntry, async_add_entities ) -> None: diff --git a/homeassistant/components/homematicip_cloud/weather.py b/homeassistant/components/homematicip_cloud/weather.py index ebc7eacf78e..f6ea95ab117 100644 --- a/homeassistant/components/homematicip_cloud/weather.py +++ b/homeassistant/components/homematicip_cloud/weather.py @@ -37,13 +37,6 @@ HOME_WEATHER_CONDITION = { } -async def async_setup_platform( - hass, config, async_add_entities, discovery_info=None -) -> None: - """Set up the HomematicIP Cloud weather sensor.""" - pass - - async def async_setup_entry( hass: HomeAssistantType, config_entry: ConfigEntry, async_add_entities ) -> None: