diff --git a/esphome/components/tm1637/display.py b/esphome/components/tm1637/display.py index 211d78a9d9..dcc4b82719 100644 --- a/esphome/components/tm1637/display.py +++ b/esphome/components/tm1637/display.py @@ -12,8 +12,8 @@ CONFIG_SCHEMA = display.BASIC_DISPLAY_SCHEMA.extend({ cv.GenerateID(): cv.declare_id(TM1637Display), cv.Optional(CONF_INTENSITY, default=7): cv.All(cv.uint8_t, cv.Range(min=0, max=7)), - cv.Required(CONF_CLK_PIN): pins.internal_gpio_output_pin_schema, - cv.Required(CONF_DIO_PIN): pins.internal_gpio_output_pin_schema, + cv.Required(CONF_CLK_PIN): pins.gpio_output_pin_schema, + cv.Required(CONF_DIO_PIN): pins.gpio_output_pin_schema, }).extend(cv.polling_component_schema('1s')) diff --git a/tests/test1.yaml b/tests/test1.yaml index 18adcf70a3..31da80ac36 100644 --- a/tests/test1.yaml +++ b/tests/test1.yaml @@ -1478,6 +1478,16 @@ display: intensity: 3 lambda: |- it.print("1234"); +- platform: tm1637 + clk_pin: + mcp23017: mcp23017_hub + number: 1 + dio_pin: + mcp23017: mcp23017_hub + number: 2 + intensity: 3 + lambda: |- + it.print("1234"); - platform: nextion lambda: |- it.set_component_value("gauge", 50);