Display component input_text

Shouldn’t this work?


font:
  - file: 'fonts/OpenSans-Regular.ttf'
    id: font1
    size: 20 #28

i2c:
  sda: D2
  scl: D3
  scan: False

text_sensor:
#from HA to esphome
  - platform: homeassistant
    name: "notify_text"     # This is a Helper set up in HA
    id: notify_text 
    entity_id: input_text.notify_text

display:
  - platform: ssd1306_i2c
    model: "SSD1306 128x64"
    address: 0x3C

    lambda: |-
      // it.print(0, 0, id(font1), "Hello World");  // This works.
        it.print(0, 0, id(font1), id(notify_text).state.c_str());     // This Doesn't

It compiles fine, but no display

Yep… Just didn’t have anything in input_text.notify_text because I didn’t configure the new device yet.
If not accepted into HA then HA won’t fill the new variable with anything.