From b60239d5e5c164b49e6478826627c01c5d9635cc Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Fri, 31 May 2019 13:40:12 +0200 Subject: [PATCH] Fix i2c setup priority (#585) Fixes https://github.com/esphome/issues/issues/314 --- esphome/components/i2c/i2c.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/i2c/i2c.cpp b/esphome/components/i2c/i2c.cpp index 834fb1334a..3fa9d2c37a 100644 --- a/esphome/components/i2c/i2c.cpp +++ b/esphome/components/i2c/i2c.cpp @@ -50,7 +50,7 @@ void I2CComponent::dump_config() { } } } -float I2CComponent::get_setup_priority() const { return setup_priority::HARDWARE; } +float I2CComponent::get_setup_priority() const { return setup_priority::BUS; } void I2CComponent::raw_begin_transmission(uint8_t address) { ESP_LOGVV(TAG, "Beginning Transmission to 0x%02X:", address);