From 0928c9739f363b9e336de4a87f2208f99f92cb34 Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Tue, 5 Mar 2019 13:44:38 +0100 Subject: [PATCH] Fix build --- esphome/components/mcp23017.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/mcp23017.py b/esphome/components/mcp23017.py index 0db97591f6..5989508149 100644 --- a/esphome/components/mcp23017.py +++ b/esphome/components/mcp23017.py @@ -5,12 +5,12 @@ import esphome.config_validation as cv from esphome.const import CONF_ADDRESS, CONF_ID from esphome.cpp_generator import Pvariable from esphome.cpp_helpers import setup_component -from esphome.cpp_types import App, GPIOInputPin, GPIOOutputPin, io_ns +from esphome.cpp_types import App, GPIOInputPin, GPIOOutputPin, io_ns, esphome_ns DEPENDENCIES = ['i2c'] MULTI_CONF = True -MCP23017GPIOMode = io_ns.enum('MCP23017GPIOMode') +MCP23017GPIOMode = esphome_ns.enum('MCP23017GPIOMode') MCP23017_GPIO_MODES = { 'INPUT': MCP23017GPIOMode.MCP23017_INPUT, 'INPUT_PULLUP': MCP23017GPIOMode.MCP23017_INPUT_PULLUP,