From 26aa399bea23ab1ad67ff526c790bc2792f3b331 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Thu, 21 Feb 2019 18:15:45 +0100 Subject: [PATCH] Allow i2c on non-pullup pins (#447) --- esphome/components/i2c.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/i2c.py b/esphome/components/i2c.py index d4d0fa0e6f..2226b51f83 100644 --- a/esphome/components/i2c.py +++ b/esphome/components/i2c.py @@ -13,8 +13,8 @@ I2CDevice = pins.I2CDevice CONFIG_SCHEMA = vol.Schema({ cv.GenerateID(): cv.declare_variable_id(I2CComponent), - vol.Optional(CONF_SDA, default='SDA'): pins.input_pullup_pin, - vol.Optional(CONF_SCL, default='SCL'): pins.input_pullup_pin, + vol.Optional(CONF_SDA, default='SDA'): pins.input_pin, + vol.Optional(CONF_SCL, default='SCL'): pins.input_pin, vol.Optional(CONF_FREQUENCY): vol.All(cv.frequency, vol.Range(min=0, min_included=False)), vol.Optional(CONF_SCAN): cv.boolean,