From 53d1a040d46c1ea88ea7272d4c3fd01f74fca11e Mon Sep 17 00:00:00 2001 From: William Scanlon Date: Sat, 5 Nov 2016 10:55:59 -0400 Subject: [PATCH] Stop Octoprint from logging errors during startup (#4220) * Fix log errors * Remove discovery code --- homeassistant/components/octoprint.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/homeassistant/components/octoprint.py b/homeassistant/components/octoprint.py index 871f81759e0..24f7039a41c 100644 --- a/homeassistant/components/octoprint.py +++ b/homeassistant/components/octoprint.py @@ -11,13 +11,10 @@ import requests import voluptuous as vol from homeassistant.const import CONF_API_KEY, CONF_HOST, CONTENT_TYPE_JSON -from homeassistant.helpers import discovery import homeassistant.helpers.config_validation as cv _LOGGER = logging.getLogger(__name__) -DISCOVER_BINARY_SENSORS = 'octoprint.binary_sensor' -DISCOVER_SENSORS = 'octoprint.sensors' DOMAIN = 'octoprint' OCTOPRINT = None @@ -44,12 +41,6 @@ def setup(hass, config): _LOGGER.error("Error setting up OctoPrint API: %r", conn_err) return False - for component, discovery_service in ( - ('sensor', DISCOVER_SENSORS), - ('binary_sensor', DISCOVER_BINARY_SENSORS)): - discovery.discover(hass, discovery_service, component=component, - hass_config=config) - return True