Help including a library from PlatformIO

I have made plenty of projects using the libraries that are included with esphome and I’m really enjoying how easy it is to use, but I want to try something a bit more advanced using a library from PlatformIO. I thought it would be cool to try using the adafruit/Adafruit SSD1306 library to enhance the capabilities of displaying information on a display.

According to the esphome documentation, I should include the library with:

esphome:
  # ...
  libraries:
    # a library from PlatformIO
    - "adafruit/Adafruit SSD1306@^2.5.1"

So this is exactly what I have tried in a very simple configuration that basically includes the library and nothing else. I can see in the build log that the adafruit/Adafruit SSD1306 library is installed, along with its dependencies. However, the build fails when it cannot locate a header file that should be included with the library. What am I doing wrong? When a library is installed, shouldn’t it include the headers from the library?

/data/librarytest/.piolibdeps/librarytest/Adafruit SSD1306/Adafruit_SSD1306.h:42:26: fatal error: Adafruit_GFX.h: No such file or directory

Here is my yaml: librarytest_yaml - Pastebin.com

Here is my build log: librarytest_buildLog - Pastebin.com