From 1bc01c73b7a72da366aea27fc3e2bd205c1d0d8e Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Sun, 27 Oct 2019 12:30:25 +0100 Subject: [PATCH] Update docs for AS3935 conf change See also https://github.com/esphome/esphome/pull/805 --- components/sensor/as3935.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/sensor/as3935.rst b/components/sensor/as3935.rst index e40850d65..aa6152939 100644 --- a/components/sensor/as3935.rst +++ b/components/sensor/as3935.rst @@ -51,10 +51,10 @@ A1 I²C address selection MSB # Example configuration for SPI (decide for one!) as3935_spi: cs_pin: GPIO12 - pin: GPIO13 + irq_pin: GPIO13 # Example configuration for I2C (decide for one!) as3935_i2c: - pin: GPIO12 + irq_pin: GPIO12 # Example configuration for creating sensors sensor: @@ -71,7 +71,7 @@ A1 I²C address selection MSB Configuration variables (shared): --------------------------------- -- **pin** (**Required**, :ref:`config-pin`): The IRQ pin, wh ich indicates if a lightning strike has been detected. +- **irq_pin** (**Required**, :ref:`config-pin`): The IRQ pin, which indicates if a lightning strike has been detected. - **indoor** (*Optional*, boolean): Indicates if the sensor is used indoor. Defaults to ``true``. - **noise_level** (*Optional*, integer): Noise floor level is compared to known reference voltage. If this level is exceeded the chip will issue an interrupt to the IRQ pin, broadcasting that it can not @@ -123,7 +123,7 @@ Use this if you want to use your AS3935 in i^2c mode. # Example configuration for I2C (decide for one!) as3935_i2c: - pin: GPIO12 + irq_pin: GPIO12 # Example shared configuration sensor: - platform: as3935 @@ -149,7 +149,7 @@ Use this if you want to use your AS3935 in SPI mode. # Example configuration for SPI (decide for one!) as3935_spi: cs_pin: GPIO12 - pin: GPIO13 + irq_pin: GPIO13 # Example lightning and energy sensor sensor: - platform: as3935