From 9abe18b579aa6d3d397e4d99551074a927b28a1f Mon Sep 17 00:00:00 2001 From: Robert Svensson Date: Fri, 16 Oct 2020 11:48:56 +0200 Subject: [PATCH] Remove setup platform functions from UniFi since they are no longer needed (#41935) --- homeassistant/components/unifi/sensor.py | 4 ---- homeassistant/components/unifi/switch.py | 4 ---- 2 files changed, 8 deletions(-) diff --git a/homeassistant/components/unifi/sensor.py b/homeassistant/components/unifi/sensor.py index 59aff09811f..ef38877533f 100644 --- a/homeassistant/components/unifi/sensor.py +++ b/homeassistant/components/unifi/sensor.py @@ -17,10 +17,6 @@ TX_SENSOR = "tx" UPTIME_SENSOR = "uptime" -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Sensor platform doesn't support configuration through configuration.yaml.""" - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up sensors for UniFi integration.""" controller = hass.data[UNIFI_DOMAIN][config_entry.entry_id] diff --git a/homeassistant/components/unifi/switch.py b/homeassistant/components/unifi/switch.py index 1b9f7147a9a..013572c11e6 100644 --- a/homeassistant/components/unifi/switch.py +++ b/homeassistant/components/unifi/switch.py @@ -26,10 +26,6 @@ CLIENT_BLOCKED = (WIRED_CLIENT_BLOCKED, WIRELESS_CLIENT_BLOCKED) CLIENT_UNBLOCKED = (WIRED_CLIENT_UNBLOCKED, WIRELESS_CLIENT_UNBLOCKED) -async def async_setup_platform(hass, config, async_add_entities, discovery_info=None): - """Component doesn't support configuration through configuration.yaml.""" - - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up switches for UniFi component.