Fix MCP23017 setup priority (#751)

Fixes https://github.com/esphome/issues/issues/535
This commit is contained in:
Otto Winter 2019-10-17 19:14:25 +02:00 committed by GitHub
parent 35a725fa1e
commit 95c883ae9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,7 +47,7 @@ void MCP23017::pin_mode(uint8_t pin, uint8_t mode) {
break; break;
} }
} }
float MCP23017::get_setup_priority() const { return setup_priority::HARDWARE; } float MCP23017::get_setup_priority() const { return setup_priority::IO; }
bool MCP23017::read_reg_(uint8_t reg, uint8_t *value) { bool MCP23017::read_reg_(uint8_t reg, uint8_t *value) {
if (this->is_failed()) if (this->is_failed())
return false; return false;