From 48a1797e720729fe8a71465b1872bf26d9fd8a15 Mon Sep 17 00:00:00 2001 From: definitio <37266727+definitio@users.noreply.github.com> Date: Wed, 12 Oct 2022 22:26:28 +0300 Subject: [PATCH] Do not require CS pin for ST7789V (#3888) Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com> --- esphome/components/st7789v/display.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/esphome/components/st7789v/display.py b/esphome/components/st7789v/display.py index c276be2f5..d18e305cc 100644 --- a/esphome/components/st7789v/display.py +++ b/esphome/components/st7789v/display.py @@ -4,7 +4,6 @@ from esphome import pins from esphome.components import display, spi from esphome.const import ( CONF_BACKLIGHT_PIN, - CONF_CS_PIN, CONF_DC_PIN, CONF_HEIGHT, CONF_ID, @@ -69,7 +68,6 @@ CONFIG_SCHEMA = cv.All( cv.Required(CONF_MODEL): ST7789V_MODEL, cv.Required(CONF_RESET_PIN): pins.gpio_output_pin_schema, cv.Required(CONF_DC_PIN): pins.gpio_output_pin_schema, - cv.Required(CONF_CS_PIN): pins.gpio_output_pin_schema, cv.Optional(CONF_BACKLIGHT_PIN): pins.gpio_output_pin_schema, cv.Optional(CONF_EIGHTBITCOLOR, default=False): cv.boolean, cv.Optional(CONF_HEIGHT): cv.int_, @@ -79,7 +77,7 @@ CONFIG_SCHEMA = cv.All( } ) .extend(cv.polling_component_schema("5s")) - .extend(spi.spi_device_schema()), + .extend(spi.spi_device_schema(cs_pin_required=False)), validate_st7789v, )