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.